From 103c58a8339c0cac95911ba83fd5adc98c17e17e Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 May 2004 15:18:17 +0000 Subject: Fixed typos and compile bugs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@810 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_blockcolor.cpp | 4 ++-- src/modules/m_nonotice.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') 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; -- cgit v1.2.3