Closes #1452.
* this when multiple prefixes are used names lists.
*/
std::string GetAllPrefixChars() const;
+
+ /** Sends a server notice to this user in the context of this channel.
+ * @param text The contents of the message to send.
+ */
+ void WriteNotice(const std::string& text) const;
};
modes.push_back(prefix);
return adding;
}
+
+
+void Membership::WriteNotice(const std::string& text) const
+{
+ std::string rawmsg = "NOTICE ";
+ rawmsg.append(chan->name).append(" :").append(text);
+ user->WriteServ(rawmsg);
+}
std::string message("Replaying up to " + ConvToStr(list->maxlen) + " lines of pre-join history");
if (list->maxtime > 0)
message.append(" spanning up to " + ConvToStr(list->maxtime) + " seconds");
- memb->user->WriteNotice(message);
+ memb->WriteNotice(message);
}
for(std::deque<HistoryItem>::iterator i = list->lines.begin(); i != list->lines.end(); ++i)