]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/membership.h
Remove the Kiwi links from the readme.
[user/henk/code/inspircd.git] / include / membership.h
index c952d09ae88f5859a7e8f3d6655383354ab19d0c..1bac0cf95e90563825e89d998a7f1284d7b53625 100644 (file)
@@ -1,7 +1,10 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2012-2014 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2013-2014, 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2013, 2017-2018 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
@@ -20,7 +23,7 @@
 
 #pragma once
 
-uint64_t ConvToUInt64(const std::string& in);
+#include "convto.h"
 
 /**
  * Represents a member of a channel.
@@ -60,7 +63,7 @@ class CoreExport Membership : public Extensible, public insp::intrusive_list_nod
         */
        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
@@ -111,4 +114,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;
 };