From 2dec8e767a70def4b9b04a96ae4f75e4d1013038 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Jun 2012 05:04:30 -0400 Subject: Allow userless command sources --- src/misc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/misc.cpp') diff --git a/src/misc.cpp b/src/misc.cpp index e5ad71d45..41f1370a1 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -222,7 +222,7 @@ void ListFormatter::Process(std::vector &buffer) } } -InfoFormatter::InfoFormatter(User *u) : user(u), longest(0) +InfoFormatter::InfoFormatter(NickCore *acc) : nc(acc), longest(0) { } @@ -235,7 +235,7 @@ void InfoFormatter::Process(std::vector &buffer) Anope::string s; for (unsigned i = it->first.length(); i < this->longest; ++i) s += " "; - s += Anope::string(translate(this->user, it->first.c_str())) + ": " + it->second; + s += Anope::string(translate(this->nc, it->first.c_str())) + ": " + it->second; buffer.push_back(s); } @@ -360,7 +360,7 @@ Anope::string do_strftime(const time_t &t, const NickCore *nc, bool short_output * @param seconds time in seconds * @return buffer */ -Anope::string expire_left(NickCore *nc, time_t expires) +Anope::string expire_left(const NickCore *nc, time_t expires) { if (!expires) return translate(nc, NO_EXPIRE); -- cgit