diff options
Diffstat (limited to 'src/commands/cmd_map.cpp')
-rw-r--r-- | src/commands/cmd_map.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::string>&, 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()); |