mirror of
https://github.com/anope/anope.git
synced 2026-07-05 19:43:13 +02:00
Edit IRCDVar of inspircd12 so certain modules don't load on that IRCd, and small cosmetic fixes on a few other protocol modules.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2052 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -570,7 +570,7 @@ class InspIRCdProto : public IRCDProto
|
||||
/* JOIN */
|
||||
void SendJoin(BotInfo *user, const char *channel, time_t chantime)
|
||||
{
|
||||
send_cmd(user->nick, "JOIN %s %ld", channel, (unsigned int)chantime);
|
||||
send_cmd(user->nick, "JOIN %s %ld", channel, static_cast<long>(chantime));
|
||||
}
|
||||
|
||||
/* UNSQLINE */
|
||||
@@ -1164,9 +1164,9 @@ int anope_event_capab(const char *source, int ac, const char **av)
|
||||
/* reset CAPAB */
|
||||
has_servicesmod = 0;
|
||||
has_globopsmod = 0;
|
||||
has_svsholdmod = 0;
|
||||
has_chghostmod = 0;
|
||||
has_chgidentmod = 0;
|
||||
has_svsholdmod = 0;
|
||||
has_chghostmod = 0;
|
||||
has_chgidentmod = 0;
|
||||
|
||||
} else if (strcasecmp(av[0], "MODULES") == 0) {
|
||||
if (strstr(av[1], "m_globops.so")) {
|
||||
@@ -1175,13 +1175,13 @@ int anope_event_capab(const char *source, int ac, const char **av)
|
||||
if (strstr(av[1], "m_services.so")) {
|
||||
has_servicesmod = 1;
|
||||
}
|
||||
if (strstr(av[1], "m_svshold.so")) {
|
||||
if (strstr(av[1], "m_svshold.so")) {
|
||||
has_svsholdmod = 1;
|
||||
}
|
||||
if (strstr(av[1], "m_chghost.so")) {
|
||||
if (strstr(av[1], "m_chghost.so")) {
|
||||
has_chghostmod = 1;
|
||||
}
|
||||
if (strstr(av[1], "m_chgident.so")) {
|
||||
if (strstr(av[1], "m_chgident.so")) {
|
||||
has_chgidentmod = 1;
|
||||
}
|
||||
if (strstr(av[1], "m_messageflood.so")) {
|
||||
|
||||
@@ -89,13 +89,13 @@ IRCDVar myIrcd[] = {
|
||||
NULL, /* Mode on ID for Opers */
|
||||
"-r", /* Mode on UnReg */
|
||||
"-r", /* Mode on Nick Change */
|
||||
1, /* Supports SGlines */
|
||||
0, /* Supports SGlines */
|
||||
1, /* Supports SQlines */
|
||||
1, /* Supports SZlines */
|
||||
1, /* Supports Halfop +h */
|
||||
4, /* Number of server args */
|
||||
0, /* Join 2 Set */
|
||||
1, /* Join 2 Message */
|
||||
0, /* Join 2 Message */
|
||||
0, /* Has exceptions +e */
|
||||
1, /* TS Topic Forward */
|
||||
0, /* TS Topci Backward */
|
||||
@@ -112,7 +112,7 @@ IRCDVar myIrcd[] = {
|
||||
1, /* svshold */
|
||||
0, /* time stamp on mode */
|
||||
0, /* NICKIP */
|
||||
1, /* O:LINE */
|
||||
0, /* O:LINE */
|
||||
1, /* UMODE */
|
||||
1, /* VHOST ON NICK */
|
||||
0, /* Change RealName */
|
||||
@@ -547,11 +547,9 @@ class InspIRCdProto : public IRCDProto
|
||||
{
|
||||
User *u = finduser(user);
|
||||
if (buf)
|
||||
send_cmd(source->uid, "KICK %s %s :%s", chan, u->GetUID().c_str()
|
||||
, buf);
|
||||
send_cmd(source->uid, "KICK %s %s :%s", chan, u->GetUID().c_str(), buf);
|
||||
else
|
||||
send_cmd(source->uid, "KICK %s %s :%s", chan, u->GetUID().c_str()
|
||||
, user);
|
||||
send_cmd(source->uid, "KICK %s %s :%s", chan, u->GetUID().c_str(), user);
|
||||
}
|
||||
|
||||
void SendNoticeChanopsInternal(BotInfo *source, const char *dest, const char *buf)
|
||||
|
||||
@@ -634,10 +634,8 @@ class RatboxProto : public IRCDTS6Proto
|
||||
void SendKickInternal(BotInfo *bi, const char *chan, const char *user, const char *buf)
|
||||
{
|
||||
User *u = finduser(user);
|
||||
if (buf) send_cmd(bi->uid, "KICK %s %s :%s", chan, u ? u->GetUID().c_str()
|
||||
: user, buf);
|
||||
else send_cmd(bi->uid, "KICK %s %s", chan, u ? u->GetUID().c_str()
|
||||
: user);
|
||||
if (buf) send_cmd(bi->uid, "KICK %s %s :%s", chan, u ? u->GetUID().c_str() : user, buf);
|
||||
else send_cmd(bi->uid, "KICK %s %s", chan, u ? u->GetUID().c_str() : user);
|
||||
}
|
||||
|
||||
void SendNoticeChanopsInternal(BotInfo *source, const char *dest, const char *buf)
|
||||
|
||||
Reference in New Issue
Block a user