From af0bf80a07b0a525175c05bc04f61c364ac4bca7 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Thu, 2 Oct 2008 17:58:15 +0000 Subject: Replaced anope_SetAkill() with direct call to SetAkill() in IRCDProto class. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1325 5417fbe8-f217-4b02-8779-1006273d7864 --- src/ircd.c | 5 ----- src/operserv.c | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/ircd.c b/src/ircd.c index 953053f2f..821f94709 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_SendAkill(const char *user, const char *host, const char *who, time_t when, time_t expires, const char *reason) -{ - ircdproto->SendAkill(user, host, who, when, expires, reason); -} - void anope_SendSVSKill(const char *source, const char *user, const char *fmt, ...) { va_list args; diff --git a/src/operserv.c b/src/operserv.c index 41de66b2c..ab26bc5c2 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -825,7 +825,7 @@ int add_akill(User * u, char *mask, const char *by, const time_t expires, slist_add(&akills, entry); if (AkillOnAdd) - anope_SendAkill(entry->user, entry->host, entry->by, entry->seton, + ircdproto->SendAkill(entry->user, entry->host, entry->by, entry->seton, entry->expires, entry->reason); free(mask2); @@ -858,7 +858,7 @@ int check_akill(const char *nick, const char *username, const char *host, continue; if (match_wild_nocase(ak->user, username) && match_wild_nocase(ak->host, host)) { - anope_SendAkill(ak->user, ak->host, ak->by, ak->seton, + ircdproto->SendAkill(ak->user, ak->host, ak->by, ak->seton, ak->expires, ak->reason); return 1; } @@ -866,7 +866,7 @@ int check_akill(const char *nick, const char *username, const char *host, if (vhost) { if (match_wild_nocase(ak->user, username) && match_wild_nocase(ak->host, vhost)) { - anope_SendAkill(ak->user, ak->host, ak->by, ak->seton, + ircdproto->SendAkill(ak->user, ak->host, ak->by, ak->seton, ak->expires, ak->reason); return 1; } @@ -876,7 +876,7 @@ int check_akill(const char *nick, const char *username, const char *host, if (ip) { if (match_wild_nocase(ak->user, username) && match_wild_nocase(ak->host, ip)) { - anope_SendAkill(ak->user, ak->host, ak->by, ak->seton, + ircdproto->SendAkill(ak->user, ak->host, ak->by, ak->seton, ak->expires, ak->reason); return 1; } -- cgit