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
commit3f01210bf188e3b7ef334df51b2443e0d94a1b6d (patch)
treee59ca1bfa22b8e9fa58e934207332530a967449e /include
parentd1004fe1a46c9f14555ee3b9832c00a696cde0fe (diff)
Added cmd_part() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1241 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h7
2 files changed, 6 insertions, 2 deletions
diff --git a/include/extern.h b/include/extern.h
index 652470102..a07d60996 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_part(void (*func) (const char *nick, const char *chan, const char *buf));
E void pmodule_cmd_391(void (*func) (const char *source, const char *timestr));
E void pmodule_cmd_250(void (*func) (const char *buf));
E void pmodule_cmd_307(void (*func) (const char *buf));
diff --git a/include/services.h b/include/services.h
index af922e026..1eff33566 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_part)(const char *nick, const char *chan, const char *buf);
void (*ircd_cmd_391)(const char *source, const char *timestr);
void (*ircd_cmd_250)(const char *buf);
void (*ircd_cmd_307)(const char *buf);
@@ -1337,6 +1336,12 @@ class IRCDProtoNew {
if (!source || !chan || !nick) return;
send_cmd(source, "INVITE %s %s", nick, chan);
}
+ virtual void cmd_part(const char *nick, const char *chan, const char *buf)
+ {
+ if (!nick || !chan) return;
+ if (buf) send_cmd(nick, "PART %s :%s", chan, buf);
+ else send_cmd(nick, "PART %s", chan);
+ }
};
/*************************************************************************/