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/services.h | |
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/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 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); + } }; /*************************************************************************/ |