Moved websocket handling on the client into its own file, added reason to part and quit messages, global system messages about a user now only gets sent to channels where the user is/was
This commit is contained in:
parent
3f335187c0
commit
736ef76bc0
9 changed files with 108 additions and 100 deletions
|
@ -33,6 +33,11 @@ type Join struct {
|
|||
Channels []string `json:"channels"`
|
||||
}
|
||||
|
||||
type Part struct {
|
||||
Join
|
||||
Reason string `json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
type Mode struct {
|
||||
Server string `json:"server"`
|
||||
Channel string `json:"channel"`
|
||||
|
@ -44,6 +49,7 @@ type Mode struct {
|
|||
type Quit struct {
|
||||
Server string `json:"server"`
|
||||
User string `json:"user"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
type Chat struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue