From 1e32fbf5ea2f0e4feaafdb471ad8dcab204d8cce Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Tue, 29 Jan 2013 16:29:07 -0500 Subject: [PATCH] Making downtime also remove reference to self --- plugins/downtime.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/downtime.go b/plugins/downtime.go index 4bb2f3d..c6ffa57 100644 --- a/plugins/downtime.go +++ b/plugins/downtime.go @@ -78,8 +78,8 @@ func (p *DowntimePlugin) Message(message bot.Message) bool { tops := "The top entries are: " for _, e := range entries { - // filter out ZNC entries - if strings.HasPrefix(e.Nick, "*") { + // filter out ZNC entries and ourself + if strings.HasPrefix(e.Nick, "*") || strings.ToLower(p.Bot.Config.Nick) == e.Nick { p.remove(e.Nick) } else { tops = fmt.Sprintf("%s%s: %s ", tops, e.Nick, time.Now().Sub(e.LastSeen))