diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-20 04:59:38 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-03-20 04:59:38 +0000 |
| commit | 51351aac2b7e993de3610c406af1218d32a2811f (patch) | |
| tree | 452919cf896b89063894d5ff4af7a7e676d54c00 /src/operserv.c | |
| parent | ba4c7d813808cad3dd79bfb58025b61506482252 (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/operserv.c')
| -rw-r--r-- | src/operserv.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/operserv.c b/src/operserv.c index 3f7a68df7..958f1f422 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -308,6 +308,14 @@ int add_akill(User * u, const char *mask, const char *by, const time_t expires, entry->seton = time(NULL); entry->expires = expires; + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnAddAkill, OnAddAkill(u, entry)); + if (MOD_RESULT == EVENT_STOP) + { + delete entry; + return -1; + } + slist_add(&akills, entry); if (Config.AkillOnAdd) @@ -504,6 +512,14 @@ int add_sgline(User * u, const char *mask, const char *by, time_t expires, entry->seton = time(NULL); entry->expires = expires; + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnAddSXLine, OnAddSXLine(u, entry, SX_SGLINE)); + if (MOD_RESULT == EVENT_STOP) + { + delete entry; + return -1; + } + slist_add(&sglines, entry); ircdproto->SendSGLine(entry); @@ -691,6 +707,14 @@ int add_sqline(User * u, const char *mask, const char *by, time_t expires, entry->seton = time(NULL); entry->expires = expires; + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnAddSXLine, OnAddSXLine(u, entry, SX_SQLINE)); + if (MOD_RESULT == EVENT_STOP) + { + delete entry; + return -1; + } + slist_add(&sqlines, entry); sqline(entry->mask, entry->reason); @@ -903,6 +927,14 @@ int add_szline(User * u, const char *mask, const char *by, time_t expires, entry->seton = time(NULL); entry->expires = expires; + EventReturn MOD_RESULT; + FOREACH_RESULT(I_OnAddSXLine, OnAddSXLine(u, entry, SX_SZLINE)); + if (MOD_RESULT == EVENT_STOP) + { + delete entry; + return -1; + } + slist_add(&szlines, entry); ircdproto->SendSZLine(entry); |
