- virtual void SendMode(const std::string &target, parameterlist &modedata) { }
-
- virtual void SendModeStr(const std::string &target, const std::string &modeline)
- {
- /* Convenience function */
- irc::spacesepstream x(modeline);
- parameterlist n;
- std::string v;
- while (x.GetToken(v))
- n.push_back(v);
- SendMode(target, n);
- }
-
- virtual void SendModeNotice(const std::string &modes, const std::string &text) { }
+ /** Send mode changes for an object.
+ * @param source The source of the mode change
+ * @param usertarget The target user, NULL if the target is a channel
+ * @param chantarget The target channel, NULL if the target is a user
+ * @param modedata The mode changes to send.
+ * @param translate A list of translation types
+ */
+ virtual void SendMode(User* source, User* usertarget, Channel* chantarget, const parameterlist& modedata, const std::vector<TranslateType>& translate) { }