summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index 374ac9918..3cdd9a518 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -611,7 +611,6 @@ E void pmodule_cmd_372_error(void (*func) (const char *source));
E void pmodule_cmd_375(void (*func) (const char *source));
E void pmodule_cmd_376(void (*func) (const char *source));
E void pmodule_cmd_351(void (*func) (const char *source));
-E void pmodule_cmd_quit(void (*func) (const char *source, const char *buf));
E void pmodule_cmd_pong(void (*func) (const char *servname, const char *who));
E void pmodule_cmd_join(void (*func) (const char *user, const char *channel, time_t chantime));
E void pmodule_cmd_unsqline(void (*func) (const char *user));
diff --git a/include/services.h b/include/services.h
index cc1ed7175..406a943a8 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1061,7 +1061,6 @@ typedef struct ircd_proto_ {
void (*ircd_cmd_375)(const char *source);
void (*ircd_cmd_376)(const char *source);
void (*ircd_cmd_351)(const char *source);
- void (*ircd_cmd_quit)(const char *source, const char *buf);
void (*ircd_cmd_pong)(const char *servname, const char *who);
void (*ircd_cmd_join)(const char *user, const char *channel, time_t chantime);
void (*ircd_cmd_unsqline)(const char *user);
@@ -1326,6 +1325,11 @@ class IRCDProtoNew {
send_cmd(source, "PRIVMSG %s%s :%s", ircd->globaltldprefix, dest, msg);
}
virtual void cmd_bot_chan_mode(const char *, const char *) = 0;
+ virtual void cmd_quit(const char *source, const char *buf)
+ {
+ if (buf) send_cmd(source, "QUIT :%s", buf);
+ else send_cmd(source, "QUIT");
+ }
};
/*************************************************************************/