forked from External/ergo
properly implement join/part
This commit is contained in:
parent
c4f457705a
commit
a0eed1d687
3 changed files with 21 additions and 15 deletions
|
|
@ -301,6 +301,13 @@ type PartCommand struct {
|
|||
message string
|
||||
}
|
||||
|
||||
func (cmd *PartCommand) Message() string {
|
||||
if cmd.message == "" {
|
||||
return cmd.Source().Nick()
|
||||
}
|
||||
return cmd.message
|
||||
}
|
||||
|
||||
func (cmd *PartCommand) String() string {
|
||||
return fmt.Sprintf("PART(channels=%s, message=%s)", cmd.channels, cmd.message)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue