diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | d1004fe1a46c9f14555ee3b9832c00a696cde0fe (patch) | |
tree | 5dafb7c149850200c80b073dd70fa30749d9484b /include | |
parent | 8705fed8d72a93e34a8b8759bcb42d73f9106370 (diff) |
Added cmd_invite() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1240 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 dbf51161f..652470102 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_invite(void (*func) (const char *source, const char *chan, const char *nick)); 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)); diff --git a/include/services.h b/include/services.h index 778d443b3..af922e026 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_invite)(const char *source, const char *chan, const char *nick); 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); @@ -1333,6 +1332,11 @@ class IRCDProtoNew { } virtual void cmd_join(const char *, const char *, time_t) = 0; virtual void cmd_unsqline(const char *) = 0; + virtual void cmd_invite(const char *source, const char *chan, const char *nick) + { + if (!source || !chan || !nick) return; + send_cmd(source, "INVITE %s %s", nick, chan); + } }; /*************************************************************************/ |