1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 08:43:14 +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
+1 -3
View File
@@ -25,11 +25,9 @@ class CommandCSList : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
Anope::string pattern = params[0];
unsigned nchans;
bool is_servadmin = u->HasCommand("chanserv/list");
bool is_servadmin = source.HasCommand("chanserv/list");
int count = 0, from = 0, to = 0;
bool suspended = false, channoexpire = false;