]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_seenicks.cpp
Fix the chanhistory module not storing CTCP ACTIONs.
[user/henk/code/inspircd.git] / src / modules / m_seenicks.cpp
index 02c2621bbb9fc48d117838ba5a664bcee4d7c545..1f3b1c3e6b5b712eae28f549f138823c0e8d59a6 100644 (file)
@@ -1,9 +1,11 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
+ *   Copyright (C) 2007-2008, 2010 Craig Edwards <brain@inspircd.org>
  *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
- *   Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net>
- *   Copyright (C) 2007 Craig Edwards <craigedwards@brainbox.cc>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
 
 #include "inspircd.h"
 
-/* $ModDesc: Provides support for seeing local and remote nickchanges via snomasks */
-
 class ModuleSeeNicks : public Module
 {
  public:
-       void init()
+       void init() CXX11_OVERRIDE
        {
                ServerInstance->SNO->EnableSnomask('n',"NICK");
-               Implementation eventlist[] = { I_OnUserPostNick };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
        }
 
-       virtual Version GetVersion()
+       Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides support for seeing local and remote nickchanges via snomasks", VF_VENDOR);
+               return Version("Provides snomasks 'n' and 'N' to see local and remote nickchanges", VF_VENDOR);
        }
 
-       virtual void OnUserPostNick(User* user, const std::string &oldnick)
+       void OnUserPostNick(User* user, const std::string &oldnick) CXX11_OVERRIDE
        {
                ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(user) ? 'n' : 'N',"User %s changed their nickname to %s", oldnick.c_str(), user->nick.c_str());
        }