mirror of
https://github.com/anope/anope.git
synced 2026-07-04 10:03:14 +02:00
Replaced anope_SendSZLine() with direct call to SendSZLine() in IRCDProto class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1360 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -1122,7 +1122,6 @@ 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_SendSZLine(const char *mask, const char *reason, const char *whom); /* SZLINE */
|
||||
E void anope_cmd_svinfo(); /* SVINFO */
|
||||
E void anope_cmd_svsadmin(const char *server, int set); /* SVSADMIN */
|
||||
E void anope_cmd_svsinfo(); /* SVSINFO */
|
||||
|
||||
@@ -43,11 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av)
|
||||
ircdproto->ProcessUsermodes(user, ac, av);
|
||||
}
|
||||
|
||||
void anope_SendSZLine(const char *mask, const char *reason, const char *whom)
|
||||
{
|
||||
ircdproto->SendSZLine(mask, reason, whom);
|
||||
}
|
||||
|
||||
void anope_SendSGLine(const char *mask, const char *reason)
|
||||
{
|
||||
ircdproto->SendSGLine(mask, reason);
|
||||
|
||||
+2
-2
@@ -1430,7 +1430,7 @@ int add_szline(User * u, char *mask, const char *by, const time_t expires,
|
||||
entry->expires = expires;
|
||||
|
||||
slist_add(&szlines, entry);
|
||||
anope_SendSZLine(entry->mask, entry->reason, entry->by);
|
||||
ircdproto->SendSZLine(entry->mask, entry->reason, entry->by);
|
||||
|
||||
return deleted;
|
||||
}
|
||||
@@ -1456,7 +1456,7 @@ int check_szline(const char *nick, char *ip)
|
||||
}
|
||||
|
||||
if (match_wild_nocase(sx->mask, ip)) {
|
||||
anope_SendSZLine(sx->mask, sx->reason, sx->by);
|
||||
ircdproto->SendSZLine(sx->mask, sx->reason, sx->by);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user