diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-02 08:39:28 +0000 |
| commit | 809ed7c2c04f2c004be3f8f7d29ff3b4f0e3e0f7 (patch) | |
| tree | 867a1c3ddb9ab32dde2449b1632d2f4f772c6285 /src/sessions.c | |
| parent | bd56c0fb93b06c1d5f58f83089f12eda5c9e82d9 (diff) | |
Convert various to new name scheme.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 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 dafae51f1..e7621cc75 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_cmd_global(s_OperServ, + anope_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_cmd_global(s_OperServ, + anope_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_cmd_global(s_OperServ, + anope_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_cmd_global(NULL, "Write error on %s: %s", ExceptionDBName, \ + anope_SendGlobops(NULL, "Write error on %s: %s", ExceptionDBName, \ strerror(errno)); \ lastwarn = time(NULL); \ } \ |
