From 67cb713c0fcd65f9f842c589c7e1c08f9af597f0 Mon Sep 17 00:00:00 2001 From: David Athay Date: Wed, 13 Aug 2008 15:31:48 +0000 Subject: Added permission levels to guilds, and operator permissions to channels. --- src/chat-server/chatchannel.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/chat-server/chatchannel.hpp') diff --git a/src/chat-server/chatchannel.hpp b/src/chat-server/chatchannel.hpp index 5fce1abb..c0f2ae23 100644 --- a/src/chat-server/chatchannel.hpp +++ b/src/chat-server/chatchannel.hpp @@ -131,6 +131,16 @@ class ChatChannel */ bool canJoin() const; + /** + * Set user mode + */ + void setUserMode(ChatClient *, unsigned char mode); + + /** + * Get user mode + */ + std::string getUserMode(ChatClient *); + private: unsigned short mId; /**< The ID of the channel. */ std::string mName; /**< The name of the channel. */ @@ -138,6 +148,7 @@ class ChatChannel std::string mPassword; /**< The channel password. */ bool mJoinable; /**< Whether anyone can join. */ ChannelUsers mRegisteredUsers; /**< Users in this channel. */ + std::string mOwner; /**< Channel owner character name */ }; #endif -- cgit v1.2.3-70-g09d2