summaryrefslogtreecommitdiff
path: root/src/protocol/inspircd11.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 01:16:26 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 01:16:26 +0000
commit6d835a6e49d41d8353ee8506dc6d7cf7b3f1047a (patch)
tree0600d11b587c41bd43e4cd37dbaab99220c34117 /src/protocol/inspircd11.c
parent2c9f2eb991467197762d39b6a7eaf688c55520b3 (diff)
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
Diffstat (limited to 'src/protocol/inspircd11.c')
-rw-r--r--src/protocol/inspircd11.c14
1 files changed, 7 insertions, 7 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")) {