From e128089c09e94e7f887994ca4ea09b3dee46c8aa Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 1 Aug 2016 00:01:59 +0200 Subject: [PATCH] fixed detection of PRIVMSGS to channel from outside --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index b10b1ad..a4aafa4 100644 --- a/server.go +++ b/server.go @@ -397,7 +397,7 @@ func handleCmdPrivmsg(sv *Server, msg *irc.Message) { sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel") return } - if _, exists := sv.chUsers[clid]; !exists { + if _, exists := sv.chUsers[chid][clid]; !exists { sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel") return }