diff options
author | Adam <Adam@anope.org> | 2012-06-18 05:04:30 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-06-18 05:04:30 -0400 |
commit | 2dec8e767a70def4b9b04a96ae4f75e4d1013038 (patch) | |
tree | 36f5b551ff359a578e17d5e7d2f486970d759a7b /src/misc.cpp | |
parent | 873d4287de57f7f9caa23cb2c9265d1ad2804aba (diff) |
Allow userless command sources
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 e5ad71d45..41f1370a1 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -222,7 +222,7 @@ void ListFormatter::Process(std::vector<Anope::string> &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<Anope::string> &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); |