1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 06:03: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 -2
View File
@@ -24,7 +24,6 @@ class CommandBSBotList : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
User *u = source.u;
unsigned count = 0;
ListFormatter list;
@@ -34,7 +33,7 @@ class CommandBSBotList : public Command
{
BotInfo *bi = it->second;
if (u->HasCommand("botserv/botlist") || !bi->HasFlag(BI_PRIVATE))
if (source.HasCommand("botserv/botlist") || !bi->HasFlag(BI_PRIVATE))
{
++count;
ListFormatter::ListEntry entry;