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_getemail.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/commands/ns_getemail.cpp') diff --git a/modules/commands/ns_getemail.cpp b/modules/commands/ns_getemail.cpp index 6301ddd4e..a21c8c1b5 100644 --- a/modules/commands/ns_getemail.cpp +++ b/modules/commands/ns_getemail.cpp @@ -28,11 +28,10 @@ class CommandNSGetEMail : public Command void Execute(CommandSource &source, const std::vector ¶ms) anope_override { - User *u = source.u; const Anope::string &email = params[0]; int j = 0; - Log(LOG_ADMIN, u, this) << "on " << email; + Log(LOG_ADMIN, source, this) << "on " << email; for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it) { -- cgit