diff options
author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
tree | e145e04fa3d041cf92ce46da4ac790b63231059c /src/misc.cpp | |
parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) |
Reworked live SQL support yet again
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 855155409..fbc110ef3 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -305,7 +305,7 @@ time_t dotime(const Anope::string &s) * @param seconds time in seconds * @return buffer */ -Anope::string duration(const time_t &t, NickCore *nc) +Anope::string duration(const time_t &t, const NickCore *nc) { /* We first calculate everything */ time_t days = (t / 86400); @@ -339,7 +339,7 @@ Anope::string duration(const time_t &t, NickCore *nc) } } -Anope::string do_strftime(const time_t &t, NickCore *nc, bool short_output) +Anope::string do_strftime(const time_t &t, const NickCore *nc, bool short_output) { tm tm = *localtime(&t); char buf[BUFSIZE]; @@ -514,7 +514,7 @@ bool nickIsServices(const Anope::string &tempnick, bool bot) nick = nick.substr(0, at); } - BotInfo *bi = findbot(nick); + const BotInfo *bi = findbot(nick); if (bi) return bot ? true : bi->HasFlag(BI_CORE); return false; |