diff options
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); + } }; /*************************************************************************/ |
