1
0
Fork 0
forked from External/ergo

properly implement join/part

This commit is contained in:
Jeremy Latt 2014-02-08 17:53:06 -08:00
parent c4f457705a
commit a0eed1d687
3 changed files with 21 additions and 15 deletions

View file

@ -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)
}