fixed detection of PRIVMSGS to channel from outside

This commit is contained in:
Andreas Neue 2016-08-01 00:01:59 +02:00
parent 8088acc214
commit e128089c09
1 changed files with 1 additions and 1 deletions

View File

@ -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
}