summaryrefslogtreecommitdiff
path: root/src/ultimate2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ultimate2.c')
-rw-r--r--src/ultimate2.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ultimate2.c b/src/ultimate2.c
index ca288ead6..31f6cf220 100644
--- a/src/ultimate2.c
+++ b/src/ultimate2.c
@@ -1150,7 +1150,7 @@ void anope_cmd_squit(char *servname, char *message)
return;
}
- send_cmd(servname, "SQUIT %s :%s", servname, message);
+ send_cmd(NULL, "SQUIT %s :%s", servname, message);
}
/* SVSO */
@@ -1687,4 +1687,16 @@ int anope_event_error(char *source, int ac, char **av)
return MOD_CONT;
}
+void anope_cmd_jupe(char *jserver, char *who, char *reason)
+{
+ char rbuf[256];
+
+ snprintf(rbuf, sizeof(rbuf), "Juped by %s%s%s", who,
+ reason ? ": " : "", reason ? reason : "");
+
+ anope_cmd_squit(jserver, rbuf);
+ anope_cmd_server(jserver, 2, rbuf);
+ new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
+}
+
#endif