From 682808a251c56edc2f3fb6fff490f051e360f8bb Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 17 Sep 2009 23:50:43 +0000 Subject: Remove SID from /map for non-opers, and add it to non-spanningtree for opers [dKingston] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11745 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_map.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/commands') diff --git a/src/commands/cmd_map.cpp b/src/commands/cmd_map.cpp index edc8aa124..b6846954a 100644 --- a/src/commands/cmd_map.cpp +++ b/src/commands/cmd_map.cpp @@ -35,6 +35,13 @@ CmdResult CommandMap::Handle (const std::vector&, User *user) // as with /LUSERS this does nothing without a linking // module to override its behaviour and display something // better. + + if (IS_OPER(user)) + { + user->WriteNumeric(006, "%s :%s [%s]", user->nick.c_str(), ServerInstance->Config->ServerName, ServerInstance->Config->GetSID().c_str()); + user->WriteNumeric(007, "%s :End of /MAP", user->nick.c_str()); + return CMD_SUCCESS; + } user->WriteNumeric(006, "%s :%s",user->nick.c_str(),ServerInstance->Config->ServerName); user->WriteNumeric(007, "%s :End of /MAP",user->nick.c_str()); -- cgit v1.2.3