add host to pretty join evvents
This commit is contained in:
parent
8b74da5cfa
commit
c164d69de5
4
event.go
4
event.go
@ -243,11 +243,11 @@ func (e *Event) Pretty() (out string, ok bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if e.Command == JOIN && len(e.Params) > 0 {
|
if e.Command == JOIN && len(e.Params) > 0 {
|
||||||
return fmt.Sprintf("[*] %s has joined %s", e.Source.Name, e.Params[0]), true
|
return fmt.Sprintf("[*] %s (%s) has joined %s", e.Source.Name, e.Source.Host, e.Params[0]), true
|
||||||
}
|
}
|
||||||
|
|
||||||
if e.Command == PART && len(e.Params) > 0 {
|
if e.Command == PART && len(e.Params) > 0 {
|
||||||
return fmt.Sprintf("[*] %s has left %s (%s)", e.Source.Name, e.Params[0], e.Trailing), true
|
return fmt.Sprintf("[*] %s (%s) has left %s (%s)", e.Source.Name, e.Source.Host, e.Params[0], e.Trailing), true
|
||||||
}
|
}
|
||||||
|
|
||||||
if e.Command == ERROR {
|
if e.Command == ERROR {
|
||||||
|
Loading…
Reference in New Issue
Block a user