summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-06-06 23:33:23 +0000
commit9ff6ed2430ed87014846b39456b31b7aba231e48 (patch)
tree0f61726fefb323c39696510ac38e5bc30d44fa2b /src/init.c
parent2eae73808355d8a26886bfcf42f03db02e53f1e6 (diff)
New events stuff, patch totally by Adam (aka Awesome).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2313 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.c b/src/init.c
index e80f52c59..8ef0a48df 100644
--- a/src/init.c
+++ b/src/init.c
@@ -604,7 +604,7 @@ int init_secondary(int ac, char **av)
/* Save the databases back to file/mysql to reflect any changes */
alog("Info: Reflecting database records.");
save_databases();
- send_event(EVENT_CONNECT, 1, EVENT_START);
+ FOREACH_MOD(I_OnPreServerConnect, OnPreServerConnect());
/* Connect to the remote server */
std::list<Uplink *>::iterator curr_uplink = Uplinks.begin(), end_uplink = Uplinks.end();
@@ -620,7 +620,7 @@ int init_secondary(int ac, char **av)
if (curr_uplink == end_uplink) fatal_perror("Can't connect to any servers");
ircdproto->SendConnect();
- send_event(EVENT_CONNECT, 1, EVENT_STOP);
+ FOREACH_MOD(I_OnServerConnect, OnServerConnect());
sgets2(inbuf, sizeof(inbuf), servsock);
if (strnicmp(inbuf, "ERROR", 5) == 0) {