diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
| commit | f8aff52e25d3464d2a21ef0527f30e5a7d6fab9b (patch) | |
| tree | 8a18a33b4e810cdec7bd6dee59821dc09c867aa0 /include | |
| parent | 3f01210bf188e3b7ef334df51b2443e0d94a1b6d (diff) | |
Added cmd_global() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1242 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/extern.h | 1 | ||||
| -rw-r--r-- | include/services.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h index a07d60996..b3330e66b 100644 --- a/include/extern.h +++ b/include/extern.h @@ -623,7 +623,6 @@ E void pmodule_cmd_318(void (*func) (const char *source, const char *who)); E void pmodule_cmd_242(void (*func) (const char *buf)); E void pmodule_cmd_243(void (*func) (const char *buf)); E void pmodule_cmd_211(void (*func) (const char *buf)); -E void pmodule_cmd_global(void (*func) (const char *source, const char *buf)); E void pmodule_cmd_sqline(void (*func) (const char *mask, const char *reason)); E void pmodule_cmd_squit(void (*func) (const char *servname, const char *message)); E void pmodule_cmd_svso(void (*func) (const char *source, const char *nick, const char *flag)); diff --git a/include/services.h b/include/services.h index 1eff33566..f30b63828 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_global)(const char *source, const char *buf); void (*ircd_cmd_sqline)(const char *mask, const char *reason); void (*ircd_cmd_squit)(const char *servname, const char *message); void (*ircd_cmd_svso)(const char *source, const char *nick, const char *flag); @@ -1342,6 +1341,11 @@ class IRCDProtoNew { if (buf) send_cmd(nick, "PART %s :%s", chan, buf); else send_cmd(nick, "PART %s", chan); } + virtual void cmd_global(const char *source, const char *buf) + { + if (!buf) return; + send_cmd(source ? source : ServerName, "GLOBOPS :%s", buf); + } }; /*************************************************************************/ |
