diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-23 19:12:20 +0000 |
| commit | 8431ac369b2f12ac376798fb01748f52d327164a (patch) | |
| tree | 383144a0a102038cf5fd1aaf780f9594ffb376f1 /src/protocol/inspircd12.cpp | |
| parent | 5950b11a0f4903cd07c0068a428f499dd64bdd2b (diff) | |
Converted many C-style casts to C++-style casts.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd12.cpp')
| -rw-r--r-- | src/protocol/inspircd12.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index 205e91897..dc46f95e2 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -427,7 +427,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 0", source, (long int) time(NULL)); + send_cmd(bi->uid, "IDLE %s %ld 0", source, static_cast<long>(time(NULL))); return MOD_CONT; } @@ -629,7 +629,7 @@ class InspIRCdProto : public IRCDProto void SendSVSHold(const char *nick) { BotInfo *bi = findbot(s_OperServ); - send_cmd(bi->uid, "SVSHOLD %s %ud :%s", nick, (unsigned int)NSReleaseTimeout, "Being held for registered user"); + send_cmd(bi->uid, "SVSHOLD %s %u :%s", nick, static_cast<unsigned>(NSReleaseTimeout), "Being held for registered user"); } /* SVSHOLD - release */ @@ -701,7 +701,7 @@ class InspIRCdProto : public IRCDProto send_cmd(ircd->ts6 ? bi->uid : bi->nick, "SNONOTICE A :%s", buf); } } - + int IsNickValid(const char *nick) { /* InspIRCd, like TS6, uses UIDs on collision, so... */ @@ -1104,7 +1104,7 @@ int anope_event_uid(const char *source, int ac, const char **av) User *user; struct in_addr addy; Server *s = findserver_uid(servlist, source); - uint32 *ad = (uint32 *) &addy; + uint32 *ad = reinterpret_cast<uint32 *>(&addy); int svid = 0; int ts = strtoul(av[1], NULL, 10); |
