add prettification to MODE events

This commit is contained in:
Liam Stanley 2017-02-07 06:25:27 -05:00
parent 3caa790524
commit 01fc509fc2

View File

@ -270,6 +270,10 @@ func (e *Event) Pretty() (out string, ok bool) {
return fmt.Sprintf("[%s] *** %s has set the topic to: %s", e.Params[len(e.Params)-1], e.Source.Name, e.Trailing), true
}
if e.Command == MODE && len(e.Params) > 2 {
return fmt.Sprintf("[%s] %s set modes: %s", e.Params[0], e.Source.Name, strings.Join(e.Params[1:], " ")), true
}
return "", false
}