]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermodes.cpp
Only check for a join time if a user is actually in the channel.
[user/henk/code/inspircd.git] / src / modules / m_opermodes.cpp
index 6a18e9c9d198f241c395b078ddd74f3d111cda2f..2f93ec5f1731efd953a0522bd5d503ba8c8020da 100644 (file)
@@ -1,10 +1,14 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012, 2014 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
- *   Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net>
+ *   Copyright (C) 2008 Robin Burchell <robin+git@viroteck.net>
  *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
- *   Copyright (C) 2005-2007 Craig Edwards <craigedwards@brainbox.cc>
+ *   Copyright (C) 2005, 2010 Craig Edwards <brain@inspircd.org>
  *
  * 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
@@ -27,7 +31,7 @@ class ModuleModesOnOper : public Module
  public:
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Sets (and unsets) modes on opers when they oper up", VF_VENDOR);
+               return Version("Allows the server administrator to set user modes on server operators when they log into their server operator account.", VF_VENDOR);
        }
 
        void OnPostOper(User* user, const std::string &opertype, const std::string &opername) CXX11_OVERRIDE
@@ -53,7 +57,7 @@ class ModuleModesOnOper : public Module
 
                std::string buf;
                irc::spacesepstream ss(smodes);
-               std::vector<std::string> modes;
+               CommandBase::Params modes;
 
                modes.push_back(u->nick);
                // split into modes and mode params