diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-16 02:25:38 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-16 02:25:38 +0000 |
| commit | c6e3324b302aa9ef4cf6bdf002719d8bf2908a0b (patch) | |
| tree | aabd05d10c6252151fb452b0db428dd985d5a884 /src/sessions.c | |
| parent | 98aa38d800a85e4cd295f435424524bbf2f0a3b1 (diff) | |
Made many of the functions in IRCDProto accept the relative object pointers instea of char* everywhere, and updated TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2706 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/sessions.c')
| -rw-r--r-- | src/sessions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sessions.c b/src/sessions.c index 934e3bc3f..d2814e4e0 100644 --- a/src/sessions.c +++ b/src/sessions.c @@ -163,7 +163,7 @@ int add_session(const char *nick, const char *host, char *hostip) add_akill(NULL, akillmask, Config.s_OperServ, time(NULL) + Config.SessionAutoKillExpiry, "Session limit exceeded"); - ircdproto->SendGlobops(Config.s_OperServ, + ircdproto->SendGlobops(findbot(Config.s_OperServ), "Added a temporary AKILL for \2%s\2 due to excessive connections", akillmask); } @@ -214,7 +214,7 @@ void del_session(const char *host) if (!session) { if (debug) { - ircdproto->SendGlobops(Config.s_OperServ, + ircdproto->SendGlobops(findbot(Config.s_OperServ), "WARNING: Tried to delete non-existant session: \2%s", host); alog("session: Tried to delete non-existant session: %s", @@ -261,7 +261,7 @@ void expire_exceptions() if (exceptions[i].expires == 0 || exceptions[i].expires > now) continue; if (Config.WallExceptionExpire) - ircdproto->SendGlobops(Config.s_OperServ, + ircdproto->SendGlobops(findbot(Config.s_OperServ), "Session limit exception for %s has expired.", exceptions[i].mask); delete [] exceptions[i].mask; |
