]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_version.cpp
Use the remote channel's capitalization on a losing TS merge
[user/henk/code/inspircd.git] / src / commands / cmd_version.cpp
index 86be41a41f9ff7e02bb7a57d738e7d56f3787c0d..3064c9440642738c4c0dcb93f4bdb4cd1c8662bc 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -31,7 +31,7 @@ class CommandVersion : public Command
  public:
        /** Constructor for version.
         */
-       CommandVersion (InspIRCd* Instance, Module* parent) : Command(Instance,parent,"VERSION",0,0) { syntax = "[<servername>]"; }
+       CommandVersion ( Module* parent) : Command(parent,"VERSION",0,0) { syntax = "[<servername>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
@@ -48,7 +48,7 @@ class CommandVersion : public Command
 
 CmdResult CommandVersion::Handle (const std::vector<std::string>&, User *user)
 {
-       user->WriteNumeric(RPL_VERSION, "%s :%s",user->nick.c_str(),ServerInstance->GetVersionString().c_str());
+       user->WriteNumeric(RPL_VERSION, "%s :%s",user->nick.c_str(),ServerInstance->GetVersionString(IS_OPER(user)).c_str());
        ServerInstance->Config->Send005(user);
        return CMD_SUCCESS;
 }