diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_blockcolor.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_nonotice.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_blockcolor.cpp b/src/modules/m_blockcolor.cpp index 0db05a7c3..13d1d4516 100644 --- a/src/modules/m_blockcolor.cpp +++ b/src/modules/m_blockcolor.cpp @@ -27,7 +27,7 @@ class ModuleBlockColor : public Module snprintf(ctext,MAXBUF,"%s",text.c_str()); if (c->IsCustomModeSet('c')) { - if (strchr(ctext,'\2')) || (strchr(ctext,'\3')) || (strchr(ctext,31)) + if ((strchr(ctext,'\2')) || (strchr(ctext,'\3')) || (strchr(ctext,31))) { WriteServ(user->fd,"404 %s %s :Can't send colors to channel (+c set)",user->nick, c->name); return 1; @@ -46,7 +46,7 @@ class ModuleBlockColor : public Module snprintf(ctext,MAXBUF,"%s",text.c_str()); if (c->IsCustomModeSet('c')) { - if (strchr(ctext,'\2')) || (strchr(ctext,'\3')) || (strchr(ctext,31)) + if ((strchr(ctext,'\2')) || (strchr(ctext,'\3')) || (strchr(ctext,31))) { WriteServ(user->fd,"404 %s %s :Can't send colors to channel (+c set)",user->nick, c->name); return 1; diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp index 66a5b056a..c26299a77 100644 --- a/src/modules/m_nonotice.cpp +++ b/src/modules/m_nonotice.cpp @@ -25,7 +25,7 @@ class ModuleNoNotice : public Module chanrec* c = (chanrec*)dest; if (c->IsCustomModeSet('T')) { - if ((Srv->ChanMode(user,c) == '@') || (Srv->ChanMode(user,c) == '%')) + if ((Srv->ChanMode(user,c) == "@") || (Srv->ChanMode(user,c) == "%")) { // ops and halfops can still /NOTICE the channel return 0; |