1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 03:33:12 +02:00

Added cmd_invite() function to IRCDProtoNew class.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1240 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-09-30 18:45:11 +00:00
parent 8705fed8d7
commit d1004fe1a4
13 changed files with 18 additions and 76 deletions
-1
View File
@@ -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));
+5 -1
View File
@@ -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);
}
};
/*************************************************************************/