ModeHandler(Module* me, const std::string& name, char modeletter, ParamSpec params, ModeType type, Class mclass = MC_OTHER);
virtual CullResult cull();
virtual ~ModeHandler();
ModeHandler(Module* me, const std::string& name, char modeletter, ParamSpec params, ModeType type, Class mclass = MC_OTHER);
virtual CullResult cull();
virtual ~ModeHandler();
virtual void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding);
};
virtual void AfterMode(User* source, User* dest, Channel* channel, const std::string& parameter, bool adding);
};
/** The mode parser handles routing of modes and handling of mode strings.
* It marshalls, controls and maintains both ModeWatcher and ModeHandler classes,
* parses client to server MODE strings for user and channel modes, and performs
/** The mode parser handles routing of modes and handling of mode strings.
* It marshalls, controls and maintains both ModeWatcher and ModeHandler classes,
* parses client to server MODE strings for user and channel modes, and performs
typedef TR1NS::unordered_map<std::string, ModeHandler*, irc::insensitive, irc::StrHashComp> ModeHandlerMap;
private:
typedef TR1NS::unordered_map<std::string, ModeHandler*, irc::insensitive, irc::StrHashComp> ModeHandlerMap;
private:
const ModeHandlerMap& GetModes(ModeType mt) const { return modehandlersbyname[mt]; }
/** Show the list of a list mode to a user. Modules can deny the listing.
const ModeHandlerMap& GetModes(ModeType mt) const { return modehandlersbyname[mt]; }
/** Show the list of a list mode to a user. Modules can deny the listing.
- * @param user User to show the list to.
- * @param chan Channel to show the list of.
- * @param mh List mode to show the list of.
- */
+ * @param user User to show the list to.
+ * @param chan Channel to show the list of.
+ * @param mh List mode to show the list of.
+ */