summaryrefslogtreecommitdiff
path: root/modules/commands/bs_botlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/bs_botlist.cpp')
-rw-r--r--modules/commands/bs_botlist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/commands/bs_botlist.cpp b/modules/commands/bs_botlist.cpp
index 9fd8b81f7..176040b10 100644
--- a/modules/commands/bs_botlist.cpp
+++ b/modules/commands/bs_botlist.cpp
@@ -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;