summaryrefslogtreecommitdiff
path: root/include
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:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commit82722cf5d7d56a51830f797b5396908387107b64 (patch)
treeb05b3223893de9bfa10e2bf38b17907652a05aaa /include
parent44f01ce8d5e604f5539f55d393ec9df17d14ffd7 (diff)
Added cmd_quit() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1236 5417fbe8-f217-4b02-8779-1006273d7864
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");
+ }
};
/*************************************************************************/