diff options
| author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-07 01:56:32 +0000 |
|---|---|---|
| committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-07 01:56:32 +0000 |
| commit | 84a39def3dcd8d7c7a7cc45e7b7a07fe6c56060a (patch) | |
| tree | 4b7c5feb9ecd0890c066dfe4ff24098d8d203804 /src/operserv.c | |
| parent | cd81294abfbab9d5ba070938265b0ac21cc15241 (diff) | |
BUILD : 1.7.8 (602) BUGS : 308, 311 NOTES : Fixed a couple of bugs, some smelling errors, and only in debug will nonexistent warnings display
git-svn-id: svn://svn.anope.org/anope/trunk@602 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@450 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/operserv.c')
| -rw-r--r-- | src/operserv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/operserv.c b/src/operserv.c index 744038866..1f4e650c3 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -5026,8 +5026,8 @@ static int do_defcon(User * u) notice_lang(s_OperServ, u, OPER_DEFCON_SYNTAX); return MOD_CONT; } - DefConLevel = newLevel; + send_event("EVENT_DEFCON_LEVEL", "%d", DefConLevel); DefContimer = time(NULL); notice_lang(s_OperServ, u, OPER_DEFCON_CHANGED, DefConLevel); defcon_sendlvls(u); @@ -5123,6 +5123,7 @@ void resetDefCon(int level) if ((DefContimer) && (time(NULL) - DefContimer >= dotime(DefConTimeOut))) { DefConLevel = level; + send_event("EVENT_DEFCON_LEVEL", "%d", DefConLevel); alog("Defcon level timeout, returning to lvl %d", level); anope_cmd_global(s_OperServ, getstring2(NULL, OPER_DEFCON_WALL), |
