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:
+8
-15
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user