]> Cypherpunks.ru repositories - goircd.git/blobdiff - room_test.go
Raise copyright years
[goircd.git] / room_test.go
index 342e58ceecb121a162b2046b2b4065f50bdfd408..58f4158b9a7b22ce896da23b38922001c72ae2fe 100644 (file)
@@ -1,6 +1,6 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -222,7 +222,7 @@ func TestJoin(t *testing.T) {
        if r := <-conn.outbound; r != ":nick2!foo2@someclient MODE #barenc -k\r\n" {
                t.Fatal("remove #barenc key", r)
        }
-       if rooms["#barenc"].key != nil {
+       if *rooms["#barenc"].key != "" {
                t.Fatal("removing key from #barenc")
        }
        if r := <-logSink; (r.what != "removed channel key") || (r.where != "#barenc") || (r.who != "nick2") || (r.meta != true) {