diff options
author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
---|---|---|
committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 21:02:37 +0000 |
commit | 6c305a3d6731191899f4331be56a071dab66d194 (patch) | |
tree | 59a7bf69f0a2b035bc84580552e0745977307a82 /src/sessions.c | |
parent | f3f1b97a1ab782a3419fe20ae06d3e3535a4ddae (diff) |
Replaced anope_SendGlobops() with direct call to SendGlobops() in IRCDProto class.
Added SendGlobopsInternal() function to IRCDProto class, now SendGlobops() is a stub to handle varargs.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1347 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/sessions.c')
-rw-r--r-- | src/sessions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sessions.c b/src/sessions.c index 5b1eb2cb1..765333cc4 100644 --- a/src/sessions.c +++ b/src/sessions.c @@ -239,7 +239,7 @@ int add_session(const char *nick, const char *host, char *hostip) add_akill(NULL, akillmask, s_OperServ, time(NULL) + SessionAutoKillExpiry, "Session limit exceeded"); - anope_SendGlobops(s_OperServ, + ircdproto->SendGlobops(s_OperServ, "Added a temporary AKILL for \2%s\2 due to excessive connections", akillmask); } @@ -288,7 +288,7 @@ void del_session(const char *host) if (!session) { if (debug) { - anope_SendGlobops(s_OperServ, + ircdproto->SendGlobops(s_OperServ, "WARNING: Tried to delete non-existant session: \2%s", host); alog("session: Tried to delete non-existant session: %s", @@ -335,7 +335,7 @@ void expire_exceptions(void) if (exceptions[i].expires == 0 || exceptions[i].expires > now) continue; if (WallExceptionExpire) - anope_SendGlobops(s_OperServ, + ircdproto->SendGlobops(s_OperServ, "Session limit exception for %s has expired.", exceptions[i].mask); free(exceptions[i].mask); @@ -443,7 +443,7 @@ void load_exceptions() restore_db(f); \ log_perror("Write error on %s", ExceptionDBName); \ if (time(NULL) - lastwarn > WarningTimeout) { \ - anope_SendGlobops(NULL, "Write error on %s: %s", ExceptionDBName, \ + ircdproto->SendGlobops(NULL, "Write error on %s: %s", ExceptionDBName, \ strerror(errno)); \ lastwarn = time(NULL); \ } \ |