summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:13 +0000
commit82dcf8a39876553f6b7f5e0b4119e409b3f566aa (patch)
tree808e4441bcbd490b1ca6707b65ee0e8f4801a873 /include/services.h
parent7eb190b1bd8cd9b3c89ec68aa0251fd5cd8e5add (diff)
Added cmd_jupe() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1269 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/services.h b/include/services.h
index c9f0d549f..58d24bc8f 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1073,7 +1073,6 @@ typedef struct ircd_proto_ {
void (*ircd_cmd_242)(const char *buf);
void (*ircd_cmd_243)(const char *buf);
void (*ircd_cmd_211)(const char *buf);
- void (*ircd_cmd_jupe)(const char *jserver, const char *who, const char *reason);
void (*ircd_set_umode)(User *user, int ac, const char **av);
int (*ircd_valid_nick)(const char *nick);
int (*ircd_valid_chan)(const char *chan);
@@ -1365,6 +1364,14 @@ class IRCDProtoNew {
virtual void cmd_swhois(const char *, const char *, const char *) { }
virtual void cmd_eob() { }
virtual void cmd_server(const char *, int, const char *) = 0;
+ virtual void cmd_jupe(const char *jserver, const char *who, const char *reason)
+ {
+ char rbuf[256];
+ snprintf(rbuf, sizeof(rbuf), "Juped by %s%s%s", who, reason ? ": " : "", reason ? reason : "");
+ if (findserver(servlist, jserver)) cmd_squit(jserver, rbuf);
+ cmd_server(jserver, 2, rbuf);
+ new_server(me_server, jserver, rbuf, SERVER_JUPED, NULL);
+ }
};
/*************************************************************************/