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/ms_staff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/ms_staff.cpp') diff --git a/modules/commands/ms_staff.cpp b/modules/commands/ms_staff.cpp index adfe51d68..9896d5971 100644 --- a/modules/commands/ms_staff.cpp +++ b/modules/commands/ms_staff.cpp @@ -40,8 +40,8 @@ class CommandMSStaff : public Command { const NickCore *nc = it->second; - if (nc->IsServicesOper()) - memoserv->Send(source.u->nick, nc->display, text, true); + if (source.nc != nc && nc->IsServicesOper()) + memoserv->Send(source.GetNick(), nc->display, text, true); } return; -- cgit