summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/servers.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/servers.c b/src/servers.c
index cef8e01b5..a2502bf8a 100644
--- a/src/servers.c
+++ b/src/servers.c
@@ -402,6 +402,15 @@ void do_squit(const char *source, int ac, char **av)
}
send_event(EVENT_SERVER_SQUIT, 1, s->name);
+ /* If this is a juped server, send a nice global to inform the online
+ * opers that we received it.
+ */
+ if (s->flags & SERVER_JUPED) {
+ snprintf(buf, BUFSIZE, "Received SQUIT for juped server %s",
+ s->name);
+ anope_cmd_global(s_OperServ, buf);
+ }
+
snprintf(buf, sizeof(buf), "%s %s", s->name,
(s->uplink ? s->uplink->name : ""));