From: Sergey Matveev Date: Sun, 18 May 2014 11:26:15 +0000 (+0400) Subject: Continuation after negative replies X-Git-Tag: 1.0~24 X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=commitdiff_plain;h=cda982f7e9e853d8c6e56b14a43deb30aa5830ef Continuation after negative replies --- diff --git a/daemon.go b/daemon.go index 1dc1763..a5b2d77 100644 --- a/daemon.go +++ b/daemon.go @@ -239,7 +239,6 @@ func (daemon *Daemon) HandlerJoin(client *Client, cmd string) { } if denied { client.ReplyNicknamed("475", room, "Cannot join channel (+k) - bad key") - continue } if denied || joined { continue @@ -349,6 +348,7 @@ func (daemon *Daemon) Processor(events chan ClientEvent) { r, found := daemon.rooms[room] if !found { client.ReplyNoChannel(room) + continue } daemon.room_sinks[r] <- ClientEvent{client, EVENT_DEL, ""} } @@ -396,6 +396,7 @@ func (daemon *Daemon) Processor(events chan ClientEvent) { r, found := daemon.rooms[cols[0]] if !found { client.ReplyNoChannel(cols[0]) + continue } var change string if len(cols) > 1 { @@ -413,6 +414,7 @@ func (daemon *Daemon) Processor(events chan ClientEvent) { r, found := daemon.rooms[room] if !found { client.ReplyNoChannel(room) + continue } daemon.room_sinks[r] <- ClientEvent{client, EVENT_WHO, ""} case "WHOIS":