mirror of https://github.com/velour/catbase.git
Fixes #46: Filter self out of user list
This commit is contained in:
parent
04839d5d2e
commit
a07a6adc0d
|
@ -232,7 +232,13 @@ func (b *Bot) EventRecieved(conn *irc.Client, inMsg irc.Msg) {
|
|||
}
|
||||
|
||||
func (b *Bot) Who(channel string) []User {
|
||||
return b.Users
|
||||
out := []User{}
|
||||
for _, u := range b.Users {
|
||||
if u.Name != b.Config.Nick {
|
||||
out = append(out, u)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
var rootIndex string = `
|
||||
|
|
Loading…
Reference in New Issue