summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp6
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;