add prettification for CHGHOST events
This commit is contained in:
parent
86463e03d5
commit
66b26a6065
4
event.go
4
event.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue