]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_uhnames.cpp
Send HALFOP= line in CAPAB CAPABILITIES for 1201 compat (anope relies on this)
[user/henk/code/inspircd.git] / src / modules / m_uhnames.cpp
index f9cd4c596580e8c578ee1b28466eb265c6a96eac..30508fab23787acd845e074625b4206277f6b2e8 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
@@ -21,7 +21,7 @@ class ModuleUHNames : public Module
  public:
        GenericCap cap;
 
-       ModuleUHNames(InspIRCd* Me) : Module(Me), cap(this, "userhost-in-names")
+       ModuleUHNames() : cap(this, "userhost-in-names")
        {
                Implementation eventlist[] = { I_OnEvent, I_OnPreCommand, I_OnNamesListItem, I_On005Numeric };
                ServerInstance->Modules->Attach(eventlist, this, 4);
@@ -33,7 +33,7 @@ class ModuleUHNames : public Module
 
        Version GetVersion()
        {
-               return Version("Provides the UHNAMES facility.",VF_VENDOR,API_VERSION);
+               return Version("Provides the UHNAMES facility.",VF_VENDOR);
        }
 
        void On005Numeric(std::string &output)
@@ -41,7 +41,7 @@ class ModuleUHNames : public Module
                output.append(" UHNAMES");
        }
 
-       ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, User *user, bool validated, const std::string &original_line)
+       ModResult OnPreCommand(std::string &command, std::vector<std::string> &parameters, LocalUser *user, bool validated, const std::string &original_line)
        {
                irc::string c = command.c_str();
                /* We don't actually create a proper command handler class for PROTOCTL,
@@ -71,7 +71,7 @@ class ModuleUHNames : public Module
                nick = memb->user->GetFullHost();
        }
 
-       void OnEvent(Event* ev)
+       void OnEvent(Event& ev)
        {
                cap.HandleEvent(ev);
        }