diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-10 15:18:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-05-10 15:18:17 +0000 |
commit | 103c58a8339c0cac95911ba83fd5adc98c17e17e (patch) | |
tree | acadec789c8df2c79edcd81d6bca1f49c5759073 | |
parent | df89eb2b577969177c7c85453f60115fbb1babea (diff) |
Fixed typos and compile bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@810 e03df62e-2008-0410-955e-edbf42e46eb7
-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; |