1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 01:16:38 +02:00

Allow userless command sources

This commit is contained in:
Adam
2012-06-18 05:04:30 -04:00
parent 873d4287de
commit 2dec8e767a
153 changed files with 1029 additions and 1060 deletions
+3 -3
View File
@@ -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);