summaryrefslogtreecommitdiff
path: root/src/sessions.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-20 04:59:38 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-03-20 04:59:38 +0000
commit51351aac2b7e993de3610c406af1218d32a2811f (patch)
tree452919cf896b89063894d5ff4af7a7e676d54c00 /src/sessions.c
parentba4c7d813808cad3dd79bfb58025b61506482252 (diff)
Added in support for OperServ and MemoServ into SQL
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2822 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/sessions.c')
-rw-r--r--src/sessions.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sessions.c b/src/sessions.c
index 94752482c..128978ba3 100644
--- a/src/sessions.c
+++ b/src/sessions.c
@@ -335,5 +335,16 @@ int exception_add(User * u, const char *mask, const int limit,
exceptions[nexceptions - 1].expires = expires;
exceptions[nexceptions - 1].num = nexceptions - 1;
+ EventReturn MOD_RESULT;
+ FOREACH_RESULT(I_OnExceptionAdd, OnExceptionAdd(u, &exceptions[nexceptions - 1]));
+ if (MOD_RESULT == EVENT_STOP)
+ {
+ delete [] exceptions[nexceptions - 1].mask;
+ delete [] exceptions[nexceptions - 1].reason;
+ --nexceptions;
+ exceptions = static_cast<Exception *>(srealloc(exceptions, sizeof(Exception) * nexceptions));
+ return -3;
+ }
+
return 1;
}