summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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;
}