add: pretty print invite command (#13)
This commit is contained in:
parent
102f17f863
commit
a5d4d6aada
4
event.go
4
event.go
@ -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
|
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 {
|
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
|
return fmt.Sprintf("[%s] *** %s has kicked %s: %s", e.Params[0], e.Source.Name, e.Params[1], e.Trailing), true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user