From 2d043de488ea65807b51b35a4436bbbf570ca29c Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 13 Oct 2009 14:16:16 +0000 Subject: removes unnecessary checks in modules, removes a superfluous else statement, fixes some formatting. Patch by dKingston. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11867 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_maphide.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_maphide.cpp') diff --git a/src/modules/m_maphide.cpp b/src/modules/m_maphide.cpp index 4c9d0591f..d05200164 100644 --- a/src/modules/m_maphide.cpp +++ b/src/modules/m_maphide.cpp @@ -20,9 +20,9 @@ class ModuleMapHide : public Module std::string url; public: ModuleMapHide() - { - ServerInstance->Modules->Attach(I_OnPreCommand, this); - ServerInstance->Modules->Attach(I_OnRehash, this); + { + Implementation eventlist[] = { I_OnPreCommand, I_OnRehash }; + ServerInstance->Modules->Attach(eventlist, this, 2); OnRehash(NULL); } -- cgit v1.3.1-10-gc9f91