add: pretty print invite command (#13)

This commit is contained in:
nmeum 2018-08-17 13:58:17 +02:00 committed by Liam Stanley
parent 102f17f863
commit a5d4d6aada

@ -383,6 +383,10 @@ func (e *Event) Pretty() (out string, ok bool) {
return fmt.Sprintf("[*] %s has quit (%s)", e.Source.Name, e.Trailing), true
}
if e.Command == INVITE && len(e.Params) == 1 {
return fmt.Sprintf("[*] %s invited to %s by %s", e.Params[0], e.Trailing, e.Source.Name), true
}
if e.Command == KICK && len(e.Params) == 2 {
return fmt.Sprintf("[%s] *** %s has kicked %s: %s", e.Params[0], e.Source.Name, e.Params[1], e.Trailing), true
}