mirror of
https://github.com/anope/anope.git
synced 2026-07-03 04:23:13 +02:00
Removed some unnecessary casts, used C++-style casts over C-style casts, fixed a few warnings (one possibly fatal one).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2655 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -150,7 +150,7 @@ int anope_event_idle(const char *source, int ac, const char **av)
|
||||
if (!bi)
|
||||
return MOD_CONT;
|
||||
|
||||
send_cmd(bi->uid, "IDLE %s %ld %ld", source, start_time, time(NULL) - bi->lastmsg);
|
||||
send_cmd(bi->uid, "IDLE %s %ld %ld", source, static_cast<long>(start_time), static_cast<long>(time(NULL) - bi->lastmsg));
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
@@ -1296,9 +1296,9 @@ class ProtoInspIRCd : public Module
|
||||
|
||||
moduleAddModes();
|
||||
|
||||
ircd->DefMLock[(size_t)CMODE_NOEXTERNAL] = true;
|
||||
ircd->DefMLock[(size_t)CMODE_TOPIC] = true;
|
||||
ircd->DefMLock[(size_t)CMODE_REGISTERED] = true;
|
||||
ircd->DefMLock[CMODE_NOEXTERNAL] = true;
|
||||
ircd->DefMLock[CMODE_TOPIC] = true;
|
||||
ircd->DefMLock[CMODE_REGISTERED] = true;
|
||||
|
||||
pmodule_ircd_proto(&ircd_proto);
|
||||
moduleAddIRCDMsgs();
|
||||
|
||||
Reference in New Issue
Block a user