summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:39:28 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-02 08:39:28 +0000
commit809ed7c2c04f2c004be3f8f7d29ff3b4f0e3e0f7 (patch)
tree867a1c3ddb9ab32dde2449b1632d2f4f772c6285 /src/main.c
parentbd56c0fb93b06c1d5f58f83089f12eda5c9e82d9 (diff)
Convert various to new name scheme.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main.c b/src/main.c
index 25bc5c090..30cff5670 100644
--- a/src/main.c
+++ b/src/main.c
@@ -183,41 +183,41 @@ void save_databases(void)
* exists we're safe. -GD
*/
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
waiting = -12;
save_cs_rdb_dbase();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
if (PreNickDBName) {
save_ns_req_rdb_dbase();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
waiting = -13;
}
if (s_BotServ) {
waiting = -14;
save_bs_rdb_dbase();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
}
if (s_HostServ) {
waiting = -15;
save_hs_rdb_dbase();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
}
waiting = -16;
save_os_rdb_dbase();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
waiting = -17;
save_rdb_news();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
waiting = -18;
save_rdb_exceptions();
if (serv_uplink)
- anope_cmd_pong(ServerName, ServerName);
+ anope_SendPong(ServerName, ServerName);
}
#endif
waiting = -20;
@@ -385,7 +385,7 @@ void sighandler(int signum)
inbuf[447] = '>';
inbuf[448] = 0;
}
- anope_cmd_global(NULL, "PANIC! buffer = %s\r\n", inbuf);
+ anope_SendGlobops(NULL, "PANIC! buffer = %s\r\n", inbuf);
modules_unload_all(false, true);
} else if (waiting < 0) {
/* This is static on the off-chance we run low on stack */
@@ -461,7 +461,7 @@ void sighandler(int signum)
default:
snprintf(buf, sizeof(buf), "waiting=%d", waiting);
}
- anope_cmd_global(NULL, "PANIC! %s (%s)", buf, strsignal(signum));
+ anope_SendGlobops(NULL, "PANIC! %s (%s)", buf, strsignal(signum));
alog("PANIC! %s (%s)", buf, strsignal(signum));
modules_unload_all(false, true);
}
@@ -585,7 +585,7 @@ int main(int ac, char **av, char **envp)
if (!readonly && (save_data || t - last_update >= UpdateTimeout)) {
if (delayed_quit)
- anope_cmd_global(NULL,
+ anope_SendGlobops(NULL,
"Updating databases on shutdown, please wait.");
save_databases();