summaryrefslogtreecommitdiff
path: root/src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index e26378dfb..37725437d 100644
--- a/src/init.c
+++ b/src/init.c
@@ -683,6 +683,8 @@ int init(int ac, char **av)
alog("Info: Not reflecting database records.");
}
#endif
+ send_event(EVENT_CONNECT, EVENT_START);
+
/* Connect to the remote server */
servsock = conn(RemoteServer, RemotePort, LocalHost, LocalPort);
if (servsock < 0 && RemoteServer2) {
@@ -715,6 +717,7 @@ int init(int ac, char **av)
}
anope_cmd_connect(servernum);
+ send_event(EVENT_CONNECT, EVENT_STOP);
sgets2(inbuf, sizeof(inbuf), servsock);
if (strnicmp(inbuf, "ERROR", 5) == 0) {