X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fmembership.h;h=6d0bc274f94adf70c6ea1b7507580c4df1d5676b;hb=a9e8e1f03ace24e9dcb50299f8e66c5fd6b42850;hp=c952d09ae88f5859a7e8f3d6655383354ab19d0c;hpb=c0aba5b728b0a921d95ec120aa638dab1520b42f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/membership.h b/include/membership.h index c952d09ae..6d0bc274f 100644 --- a/include/membership.h +++ b/include/membership.h @@ -20,7 +20,7 @@ #pragma once -uint64_t ConvToUInt64(const std::string& in); +#include "convto.h" /** * Represents a member of a channel. @@ -60,7 +60,7 @@ class CoreExport Membership : public Extensible, public insp::intrusive_list_nod */ static Id IdFromString(const std::string& str) { - return ConvToUInt64(str); + return ConvToNum(str); } /** Constructor, sets the user and chan fields to the parameters, does NOT update any bookkeeping @@ -111,4 +111,9 @@ class CoreExport Membership : public Extensible, public insp::intrusive_list_nod * 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; };