summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2015-12-09 00:07:03 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2015-12-09 00:07:03 +0100
commit24372a9ad107855bf8191d6ef5c7a0d799a68b80 (patch)
tree3353fcc84876d0c424a7b08fb49bb9579f04e896
parent0323bcd2a52253a0d191cacc237fa0a28fc582f9 (diff)
downloadgorepost-24372a9ad107855bf8191d6ef5c7a0d799a68b80.tar.gz
gorepost-24372a9ad107855bf8191d6ef5c7a0d799a68b80.tar.bz2
gorepost-24372a9ad107855bf8191d6ef5c7a0d799a68b80.tar.xz
gorepost-24372a9ad107855bf8191d6ef5c7a0d799a68b80.zip
Fix a panic on QUIT message.
-rw-r--r--bot/seen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seen.go b/bot/seen.go
index 778c065..1d2439d 100644
--- a/bot/seen.go
+++ b/bot/seen.go
@@ -30,7 +30,7 @@ type seenRecord struct {
func seenrecord(output func(irc.Message), msg irc.Message) {
var target string
- if msg.Params == nil {
+ if msg.Params == nil || msg.Command == "QUIT" {
target = ""
} else {
target = msg.Params[0]