1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 18:26:39 +02:00

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
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-02 21:20:35 +00:00
parent 6c305a3d67
commit 1f579c0fe2
6 changed files with 6 additions and 12 deletions
-1
View File
@@ -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 */
+3 -3
View File
@@ -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);
}
}
+1 -1
View File
@@ -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");
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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)
-5
View File
@@ -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);