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:
@@ -25,11 +25,9 @@ class CommandCSList : public Command
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user