1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 09:03:13 +02:00

A few GCC 3.4.x and MSVC++ warning fixes.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1839 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-12-17 20:17:52 +00:00
parent c4a8cc7e2f
commit ad7b5bdd30
14 changed files with 136 additions and 161 deletions
+9 -9
View File
@@ -498,7 +498,7 @@ class InspIRCdProto : public IRCDProto
void SendVhostDel(User *u)
{
inspircd_cmd_chghost(u->uid, (u->mode & umodes['x']) ? u->chost.c_str() : u->host);
inspircd_cmd_chghost(u->uid, (u->mode & umodes[static_cast<int>('x')]) ? u->chost.c_str() : u->host);
}
void SendAkill(const char *user, const char *host, const char *who, time_t when, time_t expires, const char *reason)
@@ -1251,10 +1251,10 @@ int anope_event_capab(const char *source, int ac, const char **av)
cbmi->getvalue = get_flood;
cbmi->csgetvalue = cs_get_flood;
myCbmodes['f'].flag = CMODE_f;
myCbmodes['f'].flags = 0;
myCbmodes['f'].setvalue = set_flood;
myCbmodes['f'].cssetvalue = cs_set_flood;
myCbmodes[static_cast<int>('f')].flag = CMODE_f;
myCbmodes[static_cast<int>('f')].flags = 0;
myCbmodes[static_cast<int>('f')].setvalue = set_flood;
myCbmodes[static_cast<int>('f')].cssetvalue = cs_set_flood;
pmodule_ircd_cbmodeinfos(myCbmodeinfos);
pmodule_ircd_cbmodes(myCbmodes);
@@ -1269,13 +1269,13 @@ int anope_event_capab(const char *source, int ac, const char **av)
}
}
if (has_banexceptionmod) {
myCmmodes['e'].addmask = add_exception;
myCmmodes['e'].delmask = del_exception;
myCmmodes[static_cast<int>('e')].addmask = add_exception;
myCmmodes[static_cast<int>('e')].delmask = del_exception;
ircd->except = 1;
}
if (has_inviteexceptionmod) {
myCmmodes['I'].addmask = add_invite;
myCmmodes['I'].delmask = del_invite;
myCmmodes[static_cast<int>('I')].addmask = add_invite;
myCmmodes[static_cast<int>('I')].delmask = del_invite;
ircd->invitemode = 1;
}
ircd->svshold = has_svsholdmod;