From 8060c79a5f13dae4607475d159319afe5e241dcc Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:12 +0000 Subject: Added cmd_squit() function to IRCDProtoNew class. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1244 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/services.h') diff --git a/include/services.h b/include/services.h index aca4b7f67..f545e6e37 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_squit)(const char *servname, const char *message); void (*ircd_cmd_svso)(const char *source, const char *nick, const char *flag); void (*ircd_cmd_chg_nick)(const char *oldnick, const char *newnick); void (*ircd_cmd_svsnick)(const char *source, const char *guest, time_t when); @@ -1346,6 +1345,11 @@ class IRCDProtoNew { send_cmd(source ? source : ServerName, "GLOBOPS :%s", buf); } virtual void cmd_sqline(const char *, const char *) = 0; + virtual void cmd_squit(const char *servname, const char *message) + { + if (!servname || !message) return; + send_cmd(NULL, "SQUIT %s :%s", servname, message); + } }; /*************************************************************************/ -- cgit