add prettification for CHGHOST events

This commit is contained in:
Liam Stanley 2017-02-08 01:50:17 -05:00
parent 86463e03d5
commit 66b26a6065

View File

@ -282,6 +282,10 @@ func (e *Event) Pretty() (out string, ok bool) {
return fmt.Sprintf("[*] %s is no longer away", e.Source.Name), true
}
if e.Command == CAP_CHGHOST && len(e.Params) == 2 {
return fmt.Sprintf("[*] %s has changed their host to %s (was %s)", e.Source.Name, e.Params[1], e.Source.Host), true
}
return "", false
}