mirror of https://github.com/velour/catbase.git
Making downtime also remove reference to self
This commit is contained in:
parent
18dcb5884d
commit
1e32fbf5ea
|
@ -78,8 +78,8 @@ func (p *DowntimePlugin) Message(message bot.Message) bool {
|
||||||
tops := "The top entries are: "
|
tops := "The top entries are: "
|
||||||
for _, e := range entries {
|
for _, e := range entries {
|
||||||
|
|
||||||
// filter out ZNC entries
|
// filter out ZNC entries and ourself
|
||||||
if strings.HasPrefix(e.Nick, "*") {
|
if strings.HasPrefix(e.Nick, "*") || strings.ToLower(p.Bot.Config.Nick) == e.Nick {
|
||||||
p.remove(e.Nick)
|
p.remove(e.Nick)
|
||||||
} else {
|
} else {
|
||||||
tops = fmt.Sprintf("%s%s: %s ", tops, e.Nick, time.Now().Sub(e.LastSeen))
|
tops = fmt.Sprintf("%s%s: %s ", tops, e.Nick, time.Now().Sub(e.LastSeen))
|
||||||
|
|
Loading…
Reference in New Issue