mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
9b8384baef
commit
2a5384692b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user