#pragma once
-uint64_t ConvToUInt64(const std::string& in);
+#include "convto.h"
/**
* Represents a member of a channel.
*/
static Id IdFromString(const std::string& str)
{
- return ConvToUInt64(str);
+ return ConvToNum<Id>(str);
}
/** Constructor, sets the user and chan fields to the parameters, does NOT update any bookkeeping
* 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;
};