From bcaf406747ea0456e97f40ba09f76223dd246581 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 27 Feb 2011 16:47:23 -0500 Subject: Made akills work on IRCds that do not support bans (ngircd) --- modules/core/bs_bot.cpp | 4 ++-- modules/core/cs_forbid.cpp | 2 +- modules/core/ns_forbid.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/core') 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; -- cgit