summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/protocol/inspircd11.c14
-rw-r--r--src/protocol/inspircd12.cpp12
-rw-r--r--src/protocol/ratbox.c6
3 files changed, 14 insertions, 18 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c
index 286daf392..fb498eb06 100644
--- a/src/protocol/inspircd11.c
+++ b/src/protocol/inspircd11.c
@@ -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")) {
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp
index 231b99631..70b89aa25 100644
--- a/src/protocol/inspircd12.cpp
+++ b/src/protocol/inspircd12.cpp
@@ -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)
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c
index f99a0bd0e..f0046d706 100644
--- a/src/protocol/ratbox.c
+++ b/src/protocol/ratbox.c
@@ -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)