diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 17:58:15 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 17:58:15 +0000 |
commit | af0bf80a07b0a525175c05bc04f61c364ac4bca7 (patch) | |
tree | 04483480e17a8c1becba6b1d17a2a4a37bd5726f | |
parent | 45e3be08fc1ddf8e747659ace359d7b98ea10232 (diff) |
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
-rw-r--r-- | include/extern.h | 1 | ||||
-rw-r--r-- | src/ircd.c | 5 | ||||
-rw-r--r-- | src/operserv.c | 8 |
3 files changed, 4 insertions, 10 deletions
diff --git a/include/extern.h b/include/extern.h index d2ffade01..1cff3a732 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1115,7 +1115,6 @@ E void notice(char *source, const char *dest, const char *fmt, ...); /******************************************************************************/ -E void anope_SendAkill(const char *user, const char *host, const char *who, time_t when, time_t expires, const char *reason); /* AKILL */ E void anope_cmd_capab(); /* CAPAB */ E void anope_cmd_chghost(const char *nick, const char *vhost); /* CHGHOST */ E void anope_cmd_chgident(const char *nick, const char *vIdent); /* CHGIDENT */ 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; } |