]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Bump the module ABI version.
[user/henk/code/inspircd.git] / include / channels.h
index 22a373a0fa155d50dd4d34e3efa4d3643b7b7782..f01a0434fd22d2937c4febf67d8ce1a79c7c666d 100644 (file)
@@ -1,10 +1,13 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013-2018 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012-2013, 2017-2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
- *   Copyright (C) 2007 Robin Burchell <robin+git@viroteck.net>
- *   Copyright (C) 2007 Dennis Friis <peavey@inspircd.org>
- *   Copyright (C) 2003-2007 Craig Edwards <craigedwards@brainbox.cc>
+ *   Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net>
+ *   Copyright (C) 2007, 2009 Dennis Friis <peavey@inspircd.org>
+ *   Copyright (C) 2006, 2008, 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
@@ -248,11 +251,11 @@ class CoreExport Channel : public Extensible
        void Write(ClientProtocol::EventProvider& protoevprov, ClientProtocol::Message& msg, char status = 0, const CUList& except_list = CUList());
 
        /** Return the channel's modes with parameters.
-        * @param showkey If this is set to true, the actual key is shown,
-        * otherwise it is replaced with '&lt;KEY&gt;'
+        * @param showsecret If this is set to true, the value of secret parameters
+        * are shown, otherwise they are replaced with '&lt;name&gt;'.
         * @return The channel mode string
         */
-       const char* ChanModes(bool showkey);
+       const char* ChanModes(bool showsecret);
 
        /** Get the value of a users prefix on this channel.
         * @param user The user to look up
@@ -283,8 +286,10 @@ class CoreExport Channel : public Extensible
 
        /** Write a NOTICE to all local users on the channel
         * @param text Text to send
+        * @param status The minimum status rank to send this message to.
         */
-       void WriteNotice(const std::string& text);
+       void WriteNotice(const std::string& text, char status = 0);
+       void WriteRemoteNotice(const std::string& text, char status = 0);
 };
 
 inline bool Channel::HasUser(User* user)