fixed detection of PRIVMSGS to channel from outside
This commit is contained in:
parent
8088acc214
commit
e128089c09
|
@ -397,7 +397,7 @@ func handleCmdPrivmsg(sv *Server, msg *irc.Message) {
|
||||||
sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel")
|
sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, exists := sv.chUsers[clid]; !exists {
|
if _, exists := sv.chUsers[chid][clid]; !exists {
|
||||||
sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel")
|
sv.sendReply(clid, ERR_CANNOTSENDTOCHAN, chid, "Cannot send to channel")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue