summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-10 11:01:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-10 11:01:47 +0000
commit2a5384692bdcb9266f9dcca8bff18ff93f5bbd08 (patch)
treedb7582d07438cc82dcf4fdfde9473b09c1335b36 /src
parent9b8384baef02fd790b7c2643002d41c639256611 (diff)
Changed so that /me doesnt get treated as a ctcp (even though it is, meh.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@807 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_noctcp.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp
index bf7cb8d62..1b1f56397 100644
--- a/src/modules/m_noctcp.cpp
+++ b/src/modules/m_noctcp.cpp
@@ -27,8 +27,11 @@ class ModuleNoCTCP : public Module
{
if ((text.length()) && (text[0] == '\1'))
{
- WriteServ(user->fd,"492 %s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
- return 1;
+ if (strncmp(text.c_str(),"\1ACTION ",8))
+ {
+ WriteServ(user->fd,"492 %s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
+ return 1;
+ }
}
}
}
@@ -44,8 +47,11 @@ class ModuleNoCTCP : public Module
{
if ((text.length()) && (text[0] == '\1'))
{
- WriteServ(user->fd,"492 %s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
- return 1;
+ if (strncmp(text.c_str(),"\1ACTION ",8))
+ {
+ WriteServ(user->fd,"492 %s %s :Can't send CTCP to channel (+C set)",user->nick, c->name);
+ return 1;
+ }
}
}
}