]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/core_channel.h
Remove the OnNamesListItem event out of the core.
[user/henk/code/inspircd.git] / src / coremods / core_channel / core_channel.h
index 59a41779055e1ade7df7d2546dcfab8995976b3b..c054d5265e6c4435361e69aa526653ff67c1aaea 100644 (file)
@@ -116,9 +116,11 @@ class CommandTopic : public SplitCommand
  */
 class CommandNames : public SplitCommand
 {
+ private:
        ChanModeReference secretmode;
        ChanModeReference privatemode;
        UserModeReference invisiblemode;
+       Events::ModuleEventProvider namesevprov;
 
  public:
        /** Constructor for names.
@@ -164,7 +166,7 @@ class ModeChannelBan : public ListModeBase
 {
  public:
        ModeChannelBan(Module* Creator)
-               : ListModeBase(Creator, "ban", 'b', "End of channel ban list", 367, 368, true, "maxbans")
+               : ListModeBase(Creator, "ban", 'b', "End of channel ban list", 367, 368, true)
        {
        }
 };
@@ -179,6 +181,7 @@ class ModeChannelKey : public ParamMode<ModeChannelKey, LocalStringExt>
        ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string& parameter, bool adding) CXX11_OVERRIDE;
        void SerializeParam(Channel* chan, const std::string* key, std::string& out)    ;
        ModeAction OnSet(User* source, Channel* chan, std::string& param) CXX11_OVERRIDE;
+       bool IsParameterSecret() CXX11_OVERRIDE;
 };
 
 /** Channel mode +l