mirror of
https://github.com/anope/anope.git
synced 2026-06-25 04:16:39 +02:00
Added Anope::CurTime to keep us from calling time() everywhere
This commit is contained in:
+1
-1
@@ -234,7 +234,7 @@ void IRCDProto::SendSquit(const Anope::string &servname, const Anope::string &me
|
||||
|
||||
void IRCDProto::SendChangeBotNick(const BotInfo *bi, const Anope::string &newnick)
|
||||
{
|
||||
send_cmd(ircd->ts6 ? bi->GetUID() : bi->nick, "NICK %s %ld", newnick.c_str(), static_cast<long>(time(NULL)));
|
||||
send_cmd(ircd->ts6 ? bi->GetUID() : bi->nick, "NICK %s %ld", newnick.c_str(), static_cast<long>(Anope::CurTime));
|
||||
}
|
||||
|
||||
void IRCDProto::SendForceNickChange(const User *u, const Anope::string &newnick, time_t when)
|
||||
|
||||
Reference in New Issue
Block a user