diff options
author | Adam <Adam@anope.org> | 2010-10-04 21:46:15 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-04 21:46:15 -0400 |
commit | 10833f9d3f006ba77623ebdc4e1f1003fe9e299b (patch) | |
tree | bec5f995c293e4ee9e595c44b9289f38b45b8d5d /src/main.cpp | |
parent | 592060ac756dd7ac5983aac987264ff5eaecd265 (diff) |
Made anoperc stop/restart send the cycleonglobal, and fixed logfiles to be opened with append not truncate
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2f37b64d8..a1b02a496 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -277,6 +277,9 @@ void sighandler(int signum) Log() << "Received " << strsignal(signum) << " signal (" << signum << "), exiting."; + if (Config->GlobalOnCycle) + oper_global("", "%s", Config->GlobalOnCycleMessage.c_str()); + expire_all(); save_databases(); default: @@ -489,7 +492,7 @@ int main(int ac, char **av, char **envp) User *u = it->second; ++it; - if (!findbot(u->nick)) + if (u->server != Me) delete u; } |