From eff72815b561c1241a00405485d26331ff0a0788 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 16 Apr 2018 22:20:29 +0100 Subject: Convert some usages of ato[il] to use ConvToNum. --- src/modules/m_spanningtree/save.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_spanningtree') 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& params) if (!u) return CMD_FAILURE; - time_t ts = atol(params[1].c_str()); + time_t ts = ConvToNum(params[1]); if (u->age == ts) u->ChangeNick(u->uuid, SavedTimestamp); -- cgit v1.2.3