1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 11:03:13 +02:00

Replaced anope_SendSGLine() with direct call to SendSGLine() in IRCDProto class.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1361 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-02 21:57:10 +00:00
parent 6ba871c953
commit 1b6c423898
3 changed files with 2 additions and 8 deletions
-1
View File
@@ -1121,7 +1121,6 @@ E void anope_SendBanDel(const char *name, const char *nick); /
E void anope_cmd_netinfo(int ac, const char **av); /* NETINFO */
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_cmd_svinfo(); /* SVINFO */
E void anope_cmd_svsadmin(const char *server, int set); /* SVSADMIN */
E void anope_cmd_svsinfo(); /* SVSINFO */
-5
View File
@@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av)
ircdproto->ProcessUsermodes(user, ac, av);
}
void anope_SendSGLine(const char *mask, const char *reason)
{
ircdproto->SendSGLine(mask, reason);
}
void anope_SendBanDel(const char *name, const char *nick)
{
ircdproto->SendBanDel(name, nick);
+2 -2
View File
@@ -1032,7 +1032,7 @@ int add_sgline(User * u, char *mask, const char *by, const time_t expires,
slist_add(&sglines, entry);
anope_SendSGLine(entry->mask, entry->reason);
ircdproto->SendSGLine(entry->mask, entry->reason);
if (KillonSGline && !ircd->sglineenforce) {
snprintf(buf, (BUFSIZE - 1), "G-Lined: %s", entry->reason);
@@ -1066,7 +1066,7 @@ int check_sgline(const char *nick, const char *realname)
continue;
if (match_wild_nocase(sx->mask, realname)) {
anope_SendSGLine(sx->mask, sx->reason);
ircdproto->SendSGLine(sx->mask, sx->reason);
/* We kill nick since s_sgline can't */
ircdproto->SendSVSKill(ServerName, nick, "G-Lined: %s", sx->reason);
return 1;