Continuation after negative replies

This commit is contained in:
Sergey Matveev 2014-05-18 15:26:15 +04:00
parent 9b2b3baca4
commit cda982f7e9

View File

@ -239,7 +239,6 @@ func (daemon *Daemon) HandlerJoin(client *Client, cmd string) {
} }
if denied { if denied {
client.ReplyNicknamed("475", room, "Cannot join channel (+k) - bad key") client.ReplyNicknamed("475", room, "Cannot join channel (+k) - bad key")
continue
} }
if denied || joined { if denied || joined {
continue continue
@ -349,6 +348,7 @@ func (daemon *Daemon) Processor(events chan ClientEvent) {
r, found := daemon.rooms[room] r, found := daemon.rooms[room]
if !found { if !found {
client.ReplyNoChannel(room) client.ReplyNoChannel(room)
continue
} }
daemon.room_sinks[r] <- ClientEvent{client, EVENT_DEL, ""} 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]] r, found := daemon.rooms[cols[0]]
if !found { if !found {
client.ReplyNoChannel(cols[0]) client.ReplyNoChannel(cols[0])
continue
} }
var change string var change string
if len(cols) > 1 { if len(cols) > 1 {
@ -413,6 +414,7 @@ func (daemon *Daemon) Processor(events chan ClientEvent) {
r, found := daemon.rooms[room] r, found := daemon.rooms[room]
if !found { if !found {
client.ReplyNoChannel(room) client.ReplyNoChannel(room)
continue
} }
daemon.room_sinks[r] <- ClientEvent{client, EVENT_WHO, ""} daemon.room_sinks[r] <- ClientEvent{client, EVENT_WHO, ""}
case "WHOIS": case "WHOIS":