summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-11 00:47:28 -0500
committerAdam <Adam@anope.org>2011-03-11 00:47:28 -0500
commit1ee3d3d81034c2e2d8c1bf55db8963a50e35f363 (patch)
treed8952ff4d27e144eedd63a056971dfc2b1af5411 /src/misc.cpp
parent97c2e0957d32c87e1055041e43eb13a4a26d0765 (diff)
Added os_config and support for including additional configuration files.
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index 431f6bc03..3fce523aa 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -201,11 +201,10 @@ time_t dotime(const Anope::string &s)
/**
* Expresses in a string the period of time represented by a given amount
* of seconds (with days/hours/minutes).
- * @param na Nick Alias
* @param seconds time in seconds
* @return buffer
*/
-Anope::string duration(NickCore *nc, time_t seconds)
+Anope::string duration(time_t seconds)
{
/* We first calculate everything */
time_t days = seconds / 86400;
@@ -248,9 +247,9 @@ Anope::string do_strftime(const time_t &t)
char buf[BUFSIZE];
strftime(buf, sizeof(buf), "%b %d %H:%M:%S %Y %Z", &tm);
if (t < Anope::CurTime)
- return Anope::string(buf) + " (" + duration(NULL, Anope::CurTime - t) + " ago)";
+ return Anope::string(buf) + " (" + duration(Anope::CurTime - t) + " ago)";
else
- return Anope::string(buf) + " (" + duration(NULL, t - Anope::CurTime) + " from now)";
+ return Anope::string(buf) + " (" + duration(t - Anope::CurTime) + " from now)";
}
/*************************************************************************/