summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-10 15:18:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-10 15:18:17 +0000
commit103c58a8339c0cac95911ba83fd5adc98c17e17e (patch)
treeacadec789c8df2c79edcd81d6bca1f49c5759073 /src/modules
parentdf89eb2b577969177c7c85453f60115fbb1babea (diff)
Fixed typos and compile bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@810 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_blockcolor.cpp4
-rw-r--r--src/modules/m_nonotice.cpp2
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;