diff options
author | Peter Powell <petpow@saberuk.com> | 2018-04-16 22:20:29 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-04-17 18:36:50 +0100 |
commit | eff72815b561c1241a00405485d26331ff0a0788 (patch) | |
tree | 8775c8d9b37aad5549f64430f30983d9848b8875 /src/modules/m_spanningtree | |
parent | 11a9aaeaa7e979ca4e0a91bc7f001cef2e7138a6 (diff) |
Convert some usages of ato[il] to use ConvToNum.
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/save.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/save.cpp b/src/modules/m_spanningtree/save.cpp index 7131b49fe..d77c2a382 100644 --- a/src/modules/m_spanningtree/save.cpp +++ b/src/modules/m_spanningtree/save.cpp @@ -32,7 +32,7 @@ CmdResult CommandSave::Handle(User* user, std::vector<std::string>& params) if (!u) return CMD_FAILURE; - time_t ts = atol(params[1].c_str()); + time_t ts = ConvToNum<time_t>(params[1]); if (u->age == ts) u->ChangeNick(u->uuid, SavedTimestamp); |