mirror of
https://github.com/anope/anope.git
synced 2026-07-04 04:03:12 +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:
@@ -1336,19 +1336,6 @@ int bahamut_valid_chan(const char *chan)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void bahamut_cmd_ctcp(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
char *s;
|
||||
if (!buf) {
|
||||
return;
|
||||
} else {
|
||||
s = normalizeBuffer(buf);
|
||||
}
|
||||
|
||||
send_cmd(source, "NOTICE %s :\1%s \1", dest, s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
/* this avoids "undefined symbol" messages of those whom try to load mods that
|
||||
call on this function */
|
||||
void bahamut_cmd_chghost(const char *nick, const char *vhost)
|
||||
@@ -1389,7 +1376,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_jupe(bahamut_cmd_jupe);
|
||||
pmodule_valid_nick(bahamut_valid_nick);
|
||||
pmodule_valid_chan(bahamut_valid_chan);
|
||||
pmodule_cmd_ctcp(bahamut_cmd_ctcp);
|
||||
pmodule_set_umode(bahamut_set_umode);
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,6 @@ void bahamut_cmd_eob();
|
||||
int bahamut_flood_mode_check(const char *value);
|
||||
void bahamut_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int bahamut_valid_nick(const char *nick);
|
||||
void bahamut_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class BahamutIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
|
||||
@@ -1562,20 +1562,6 @@ int charybdis_valid_chan(const char *chan)
|
||||
}
|
||||
|
||||
|
||||
void charybdis_cmd_ctcp(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
char *s;
|
||||
|
||||
if (!buf) {
|
||||
return;
|
||||
} else {
|
||||
s = normalizeBuffer(buf);
|
||||
}
|
||||
|
||||
send_cmd(source, "NOTICE %s :\1%s \1", dest, s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
int charybdis_send_account(int argc, char **argv)
|
||||
{
|
||||
send_cmd((UseTS6 ? TS6SID : ServerName), "ENCAP * SU %s :%s",
|
||||
@@ -1625,7 +1611,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_jupe(charybdis_cmd_jupe);
|
||||
pmodule_valid_nick(charybdis_valid_nick);
|
||||
pmodule_valid_chan(charybdis_valid_chan);
|
||||
pmodule_cmd_ctcp(charybdis_cmd_ctcp);
|
||||
pmodule_set_umode(charybdis_set_umode);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,6 @@ void charybdis_cmd_eob();
|
||||
int charybdis_flood_mode_check(const char *value);
|
||||
void charybdis_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int charybdis_valid_nick(const char *nick);
|
||||
void charybdis_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class CharybdisProto : public IRCDProtoNew {
|
||||
public:
|
||||
|
||||
@@ -1566,21 +1566,6 @@ int inspircd_valid_chan(const char *chan)
|
||||
}
|
||||
|
||||
|
||||
void inspircd_cmd_ctcp(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
char *s;
|
||||
|
||||
if (!buf) {
|
||||
return;
|
||||
} else {
|
||||
s = normalizeBuffer(buf);
|
||||
}
|
||||
|
||||
send_cmd(source, "NOTICE %s :\1%s\1", dest, s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tell anope which function we want to perform each task inside of anope.
|
||||
* These prototypes must match what anope expects.
|
||||
@@ -1612,7 +1597,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_jupe(inspircd_cmd_jupe);
|
||||
pmodule_valid_nick(inspircd_valid_nick);
|
||||
pmodule_valid_chan(inspircd_valid_chan);
|
||||
pmodule_cmd_ctcp(inspircd_cmd_ctcp);
|
||||
pmodule_set_umode(inspircd_set_umode);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ void inspircd_cmd_eob();
|
||||
int inspircd_flood_mode_check(const char *value);
|
||||
void inspircd_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int inspircd_valid_nick(const char *nick);
|
||||
void inspircd_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
int anope_event_fjoin(const char *source, int ac, const char **av);
|
||||
int anope_event_fmode(const char *source, int ac, const char **av);
|
||||
int anope_event_ftopic(const char *source, int ac, const char **av);
|
||||
|
||||
@@ -1457,21 +1457,6 @@ int ratbox_valid_chan(const char *chan)
|
||||
}
|
||||
|
||||
|
||||
void ratbox_cmd_ctcp(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
char *s;
|
||||
|
||||
if (!buf) {
|
||||
return;
|
||||
} else {
|
||||
s = normalizeBuffer(buf);
|
||||
}
|
||||
|
||||
send_cmd(source, "NOTICE %s :\1%s \1", dest, s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Tell anope which function we want to perform each task inside of anope.
|
||||
* These prototypes must match what anope expects.
|
||||
@@ -1503,7 +1488,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_jupe(ratbox_cmd_jupe);
|
||||
pmodule_valid_nick(ratbox_valid_nick);
|
||||
pmodule_valid_chan(ratbox_valid_chan);
|
||||
pmodule_cmd_ctcp(ratbox_cmd_ctcp);
|
||||
pmodule_set_umode(ratbox_set_umode);
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@ void ratbox_cmd_eob();
|
||||
int ratbox_flood_mode_check(const char *value);
|
||||
void ratbox_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int ratbox_valid_nick(const char *nick);
|
||||
void ratbox_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class RatboxProto : public IRCDProtoNew {
|
||||
public:
|
||||
|
||||
@@ -1622,19 +1622,6 @@ int unreal_valid_chan(const char *chan) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
void unreal_cmd_ctcp(const char *source, const char *dest, const char *buf)
|
||||
{
|
||||
char *s;
|
||||
if (!buf) {
|
||||
return;
|
||||
} else {
|
||||
s = normalizeBuffer(buf);
|
||||
}
|
||||
|
||||
send_cmd(source, "%s %s :\1%s \1", send_token("NOTICE", "B"), dest, s);
|
||||
free(s);
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
void moduleAddIRCDMsgs(void) {
|
||||
Message *m;
|
||||
@@ -1924,7 +1911,6 @@ void moduleAddAnopeCmds()
|
||||
pmodule_cmd_jupe(unreal_cmd_jupe);
|
||||
pmodule_valid_nick(unreal_valid_nick);
|
||||
pmodule_valid_chan(unreal_valid_chan);
|
||||
pmodule_cmd_ctcp(unreal_cmd_ctcp);
|
||||
pmodule_set_umode(unreal_set_umode);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ void unreal_cmd_eob();
|
||||
int unreal_flood_mode_check(const char *value);
|
||||
void unreal_cmd_jupe(const char *jserver, const char *who, const char *reason);
|
||||
int unreal_valid_nick(const char *nick);
|
||||
void unreal_cmd_ctcp(const char *source, const char *dest, const char *buf);
|
||||
|
||||
class UnrealIRCdProto : public IRCDProtoNew {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user