diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:20:35 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:20:35 +0000 |
commit | 1f579c0fe2f139fccf5fdfb971080ba99cfdcdab (patch) | |
tree | 93369b5c9a824e76f756735d58ebc5656e842742 | |
parent | 6c305a3d6731191899f4331be56a071dab66d194 (diff) |
Replaced anope_SendSQLine() with direct call to SendSQLine() in IRCDProto class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1348 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/extern.h | 1 | ||||
-rw-r--r-- | src/actions.c | 6 | ||||
-rw-r--r-- | src/core/bs_bot.c | 2 | ||||
-rw-r--r-- | src/core/cs_forbid.c | 2 | ||||
-rw-r--r-- | src/core/ns_forbid.c | 2 | ||||
-rw-r--r-- | src/ircd.c | 5 |
6 files changed, 6 insertions, 12 deletions
diff --git a/include/extern.h b/include/extern.h index 1325ad2ba..011354d85 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1125,7 +1125,6 @@ E void anope_SendChangeBotNick(const char *oldnick, const char *newnick); E void anope_cmd_pass(const char *pass); /* PASS */ E void anope_cmd_protoctl(); /* PROTOCTL */ E void anope_SendSGLine(const char *mask, const char *reason); /* SGLINE */ -E void anope_SendSQLine(const char *mask, const char *reason); /* SQLINE */ E void anope_SendSZLine(const char *mask, const char *reason, const char *whom); /* SZLINE */ E void anope_SendSquit(const char *servname, const char *message); /* SQUIT */ E void anope_cmd_svinfo(); /* SVINFO */ diff --git a/src/actions.c b/src/actions.c index 6b78ebc97..93613c102 100644 --- a/src/actions.c +++ b/src/actions.c @@ -89,7 +89,7 @@ void sqline(char *mask, char *reason) if (ircd->chansqline) { if (*mask == '#') { - anope_SendSQLine(mask, reason); + ircdproto->SendSQLine(mask, reason); for (i = 0; i < 1024; i++) { for (c = chanlist[i]; c; c = next) { @@ -113,10 +113,10 @@ void sqline(char *mask, char *reason) } } } else { - anope_SendSQLine(mask, reason); + ircdproto->SendSQLine(mask, reason); } } else { - anope_SendSQLine(mask, reason); + ircdproto->SendSQLine(mask, reason); } } diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c index a93f2396a..805b4dcfa 100644 --- a/src/core/bs_bot.c +++ b/src/core/bs_bot.c @@ -295,7 +295,7 @@ int do_bot(User * u) the Q:Line either (it's otherwise set in SendClientIntroduction) */ if (!user) { anope_SendChangeBotNick(oldnick, bi->nick); - anope_SendSQLine(bi->nick, "Reserved for services"); + ircdproto->SendSQLine(bi->nick, "Reserved for services"); } else { ircdproto->SendQuit(oldnick, "Quit: Be right back"); diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c index f327237a8..faaeed0de 100644 --- a/src/core/cs_forbid.c +++ b/src/core/cs_forbid.c @@ -123,7 +123,7 @@ int do_forbid(User * u) u->nick, ci->name); if (ircd->chansqline) { - anope_SendSQLine(ci->name, ((reason) ? reason : "Forbidden")); + ircdproto->SendSQLine(ci->name, ((reason) ? reason : "Forbidden")); } alog("%s: %s set FORBID for channel %s", s_ChanServ, u->nick, diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c index eb78b256e..336b44c53 100644 --- a/src/core/ns_forbid.c +++ b/src/core/ns_forbid.c @@ -115,7 +115,7 @@ int do_forbid(User * u) if (ircd->sqline) { - anope_SendSQLine(na->nick, ((reason) ? reason : "Forbidden")); + ircdproto->SendSQLine(na->nick, ((reason) ? reason : "Forbidden")); } if (WallForbid) diff --git a/src/ircd.c b/src/ircd.c index a179685ec..8191aad9a 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av) ircdproto->ProcessUsermodes(user, ac, av); } -void anope_SendSQLine(const char *mask, const char *reason) -{ - ircdproto->SendSQLine(mask, reason); -} - void anope_SendSquit(const char *servname, const char *message) { ircdproto->SendSquit(servname, message); |