mirror of
https://github.com/anope/anope.git
synced 2026-07-02 05:06:39 +02:00
Added cmd_notice() function to IRCDProtoNew class. (Replaces cmd_notice2)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1229 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-2
@@ -611,7 +611,6 @@ E void pmodule_cmd_372(void (*func) (const char *source, const char *msg));
|
||||
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_notice2(void (*func) (const char *source, const char *dest, const char *msg));
|
||||
E void pmodule_cmd_serv_notice(void (*func) (const char *source, const char *dest, const char *msg));
|
||||
E void pmodule_cmd_serv_privmsg(void (*func) (const char *source, const char *dest, const char *msg));
|
||||
E void pmodule_cmd_bot_chan_mode(void (*func) (const char *nick, const char *chan));
|
||||
@@ -1221,7 +1220,7 @@ E void anope_cmd_bot_nick(const char *nick, const char *user,const char *host,co
|
||||
E void anope_cmd_guest_nick(const char *nick, const char *user,const char *host,const char *real,const char *modes); /* NICK */
|
||||
E void anope_cmd_message(const char *source, const char *dest, const char *fmt, ...); /* NOTICE */
|
||||
E void anope_cmd_notice_ops(const char *source, const char *dest, const char *fmt, ...); /* NOTICE */
|
||||
E void anope_cmd_notice2(const char *source, const char *dest, const char *msg); /* NOTICE */
|
||||
E void anope_cmd_notice(const char *source, const char *dest, const char *msg); /* NOTICE */
|
||||
E void anope_cmd_serv_notice(const char *source, const char *dest, const char *msg); /* NOTICE */
|
||||
E void anope_cmd_part(const char *nick, const char *chan, const char *fmt, ...); /* PART */
|
||||
E void anope_cmd_pass(const char *pass); /* PASS */
|
||||
|
||||
+5
-2
@@ -1059,7 +1059,6 @@ typedef struct ircd_proto_ {
|
||||
void (*ircd_cmd_372_error)(const char *source);
|
||||
void (*ircd_cmd_375)(const char *source);
|
||||
void (*ircd_cmd_376)(const char *source);
|
||||
void (*ircd_cmd_notice2)(const char *source, const char *dest, const char *msg);
|
||||
void (*ircd_cmd_serv_notice)(const char *source, const char *dest, const char *msg);
|
||||
void (*ircd_cmd_serv_privmsg)(const char *source, const char *dest, const char *msg);
|
||||
void (*ircd_cmd_bot_chan_mode)(const char *nick, const char *chan);
|
||||
@@ -1309,7 +1308,11 @@ class IRCDProtoNew {
|
||||
{
|
||||
if (!buf || !dest) return;
|
||||
if (NSDefFlags & NI_MSG) cmd_privmsg(source, dest, buf);
|
||||
else send_cmd(source, "NOTICE %s :%s", dest, buf);
|
||||
else cmd_notice(source, dest, buf);
|
||||
}
|
||||
virtual void cmd_notice(const char *source, const char *dest, const char *msg)
|
||||
{
|
||||
send_cmd(source, "NOTICE %s :%s", dest, msg);
|
||||
}
|
||||
virtual void cmd_privmsg(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user