From 2dec8e767a70def4b9b04a96ae4f75e4d1013038 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 18 Jun 2012 05:04:30 -0400 Subject: Allow userless command sources --- modules/commands/ns_list.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/commands/ns_list.cpp') diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp index 25766ef1e..89adfc6ea 100644 --- a/modules/commands/ns_list.cpp +++ b/modules/commands/ns_list.cpp @@ -24,12 +24,11 @@ class CommandNSList : public Command void Execute(CommandSource &source, const std::vector ¶ms) anope_override { - User *u = source.u; Anope::string pattern = params[0]; const NickCore *mync; unsigned nnicks; - bool is_servadmin = u->HasCommand("nickserv/list"); + bool is_servadmin = source.HasCommand("nickserv/list"); int count = 0, from = 0, to = 0; bool suspended, nsnoexpire, unconfirmed; @@ -70,7 +69,7 @@ class CommandNSList : public Command } } - mync = u->Account(); + mync = source.nc; ListFormatter list; list.addColumn("Nick").addColumn("Last usermask"); -- cgit