summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 17:58:15 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 17:58:15 +0000
commitaf0bf80a07b0a525175c05bc04f61c364ac4bca7 (patch)
tree04483480e17a8c1becba6b1d17a2a4a37bd5726f /src
parent45e3be08fc1ddf8e747659ace359d7b98ea10232 (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
Diffstat (limited to 'src')
-rw-r--r--src/ircd.c5
-rw-r--r--src/operserv.c8
2 files changed, 4 insertions, 9 deletions
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;
}