summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-27 16:47:23 -0500
committerAdam <Adam@anope.org>2011-02-27 16:47:23 -0500
commitbcaf406747ea0456e97f40ba09f76223dd246581 (patch)
tree441f91fc002fda94a2008d9e7a755c76c30cd2c0 /modules/core
parentf234a2bfab8a4d900cfc0df91afed530d80738d4 (diff)
Made akills work on IRCds that do not support bans (ngircd)
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/bs_bot.cpp4
-rw-r--r--modules/core/cs_forbid.cpp2
-rw-r--r--modules/core/ns_forbid.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/bs_bot.cpp b/modules/core/bs_bot.cpp
index 0c0c0730d..38ddc738e 100644
--- a/modules/core/bs_bot.cpp
+++ b/modules/core/bs_bot.cpp
@@ -241,7 +241,7 @@ class CommandBSBot : public Command
{
ircdproto->SendChangeBotNick(bi, nick);
XLine x(bi->nick, "Reserved for services");
- ircdproto->SendSQLine(&x);
+ ircdproto->SendSQLine(NULL, &x);
}
if (!nick.equals_cs(bi->nick))
@@ -258,7 +258,7 @@ class CommandBSBot : public Command
{
ircdproto->SendClientIntroduction(bi, ircd->pseudoclient_mode);
XLine x(bi->nick, "Reserved for services");
- ircdproto->SendSQLine(&x);
+ ircdproto->SendSQLine(NULL, &x);
bi->RejoinAll();
}
diff --git a/modules/core/cs_forbid.cpp b/modules/core/cs_forbid.cpp
index 3d75b9233..f0cdbff86 100644
--- a/modules/core/cs_forbid.cpp
+++ b/modules/core/cs_forbid.cpp
@@ -82,7 +82,7 @@ class CommandCSForbid : public Command
if (ircd->chansqline)
{
XLine x(chan, "Forbidden");
- ircdproto->SendSQLine(&x);
+ ircdproto->SendSQLine(NULL, &x);
}
Log(LOG_ADMIN, u, this, ci) << (!ci->forbidreason.empty() ? ci->forbidreason : "No reason");
diff --git a/modules/core/ns_forbid.cpp b/modules/core/ns_forbid.cpp
index a9d3bd09b..0ced5ec68 100644
--- a/modules/core/ns_forbid.cpp
+++ b/modules/core/ns_forbid.cpp
@@ -71,7 +71,7 @@ class CommandNSForbid : public Command
if (ircd->sqline)
{
XLine x(na->nick, !reason.empty() ? reason : "Forbidden");
- ircdproto->SendSQLine(&x);
+ ircdproto->SendSQLine(NULL, &x);
}
Log(LOG_ADMIN, u, this) << "to forbid nick " << nick;