summaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/messages.c b/src/messages.c
index 6972dd116..62b986267 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -138,9 +138,12 @@ int m_privmsg(char *source, char *receiver, char *msg)
}
if (*receiver == '#') {
- if (s_BotServ && (ci = cs_findchan(receiver)))
- if (!(ci->flags & CI_VERBOTEN) && ci->c && ci->bi) /* Some paranoia checks */
+ if (s_BotServ && (ci = cs_findchan(receiver))) {
+ /* Some paranoia checks */
+ if (!(ci->flags & CI_VERBOTEN) && ci->c && ci->bi) {
botchanmsgs(u, ci, msg);
+ }
+ }
} else {
/* Check if we should ignore. Operators always get through. */