1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 19:43:14 +02:00

Added cmd_ctcp() function to IRCDProtoNew class.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1263 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-09-30 18:45:12 +00:00
parent 34afc576d7
commit a587cdc998
13 changed files with 15 additions and 97 deletions
+8 -15
View File
@@ -71,7 +71,6 @@ void initIrcdProto()
ircdproto.ircd_cmd_jupe = NULL;
ircdproto.ircd_valid_nick = NULL;
ircdproto.ircd_valid_chan = NULL;
ircdproto.ircd_cmd_ctcp = NULL;
}
/* Special function, returns 1 if executed, 0 if not */
@@ -586,15 +585,14 @@ int anope_valid_chan(const char *chan)
void anope_cmd_ctcp(const char *source, const char *dest, const char *fmt, ...)
{
va_list args;
char buf[BUFSIZE];
*buf = '\0';
if (fmt) {
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
ircdproto.ircd_cmd_ctcp(source, dest, buf);
va_list args;
char buf[BUFSIZE] = "";
if (fmt) {
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
ircdprotonew->cmd_ctcp(source, dest, buf);
}
@@ -693,11 +691,6 @@ void pmodule_cmd_211(void (*func) (const char *buf))
ircdproto.ircd_cmd_211 = func;
}
void pmodule_cmd_ctcp(void (*func) (const char *source, const char *dest, const char *buf))
{
ircdproto.ircd_cmd_ctcp = func;
}
void pmodule_cmd_svsjoin(void (*func)
(const char *source, const char *nick, const char *chan,
const char *param))