]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_info.cpp
m_spanningtree Rewrite /map
[user/henk/code/inspircd.git] / src / commands / cmd_info.cpp
index 6e5f2a90996ee45527ae45826e38b9f962a965dd..7ee1c4d3b8d48cd74b2a3c743757177a244e1222 100644 (file)
@@ -32,7 +32,12 @@ class CommandInfo : public Command
  public:
        /** Constructor for info.
         */
-       CommandInfo ( Module* parent) : Command(parent,"INFO") { syntax = "[<servermask>]"; }
+       CommandInfo(Module* parent) : Command(parent,"INFO")
+       {
+               Penalty = 4;
+               syntax = "[<servername>]";
+       }
+
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -100,7 +105,7 @@ CmdResult CommandInfo::Handle (const std::vector<std::string>& parameters, User
        int i=0;
        while (lines[i])
                user->SendText(":%s %03d %s :%s", ServerInstance->Config->ServerName.c_str(), RPL_INFO, user->nick.c_str(), lines[i++]);
-       FOREACH_MOD(I_OnInfo,OnInfo(user));
+       FOREACH_MOD(OnInfo, (user));
        user->SendText(":%s %03d %s :End of /INFO list", ServerInstance->Config->ServerName.c_str(), RPL_ENDOFINFO, user->nick.c_str());
        return CMD_SUCCESS;
 }