summaryrefslogtreecommitdiff
path: root/daemon.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.go')
-rw-r--r--daemon.go2
1 files changed, 1 insertions, 1 deletions
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, ""}