X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=daemon.go;h=57797c7128199b80fbeb976a31d48e017601e8b8;hp=80a3229b4f7ec9735617d5b9835c5a76f7c4c80f;hb=158ab243b29e99bfbe7a78ee48662fb132b47704;hpb=3cee88801ca07e8d17ed86a5ca46c759329a11e8 diff --git a/daemon.go b/daemon.go index 80a3229..57797c7 100644 --- a/daemon.go +++ b/daemon.go @@ -258,7 +258,7 @@ func HandlerJoin(client *Client, cmd string) { } for roomExisting, roomSink = range roomSinks { if room == *roomExisting.name { - if (roomExisting.key != nil) && (*roomExisting.key != key) { + if (*roomExisting.key != "") && (*roomExisting.key != key) { goto Denied } roomSink <- ClientEvent{client, EventNew, ""}