diff options
Diffstat (limited to 'src/unreal32.c')
-rw-r--r-- | src/unreal32.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/unreal32.c b/src/unreal32.c index 758ac8008..fd23edf0d 100644 --- a/src/unreal32.c +++ b/src/unreal32.c @@ -1385,7 +1385,7 @@ void anope_cmd_squit(char *servname, char *message) return; } - send_cmd(servname, "%s %s :%s", send_token("SQUIT", "-"), servname, + send_cmd(NULL, "%s %s :%s", send_token("SQUIT", "-"), servname, message); } @@ -2115,4 +2115,16 @@ int anope_flood_mode_check(char *value) } } +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 |