X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_uhnames.cpp;h=b34b248fdacfc0e57e68d65f2bc9e5da2a7e5c88;hb=95c1fb9bdd5f93cf4f8306a7b8ae9ca098aade1a;hp=126c4103884937f3bddbb868430a315fd3b0031d;hpb=b4be0c94ab5fb7e5a7a799a195c78de072a5e315;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_uhnames.cpp b/src/modules/m_uhnames.cpp index 126c41038..b34b248fd 100644 --- a/src/modules/m_uhnames.cpp +++ b/src/modules/m_uhnames.cpp @@ -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("$Id$",VF_VENDOR,API_VERSION); + return Version("Provides the UHNAMES facility.",VF_VENDOR); } void On005Numeric(std::string &output) @@ -71,7 +71,7 @@ class ModuleUHNames : public Module nick = memb->user->GetFullHost(); } - void OnEvent(Event* ev) + void OnEvent(Event& ev) { cap.HandleEvent(ev); }