From 8ceb23296d95a721ad3c2bbed5c9996c37f8d6ba Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Tue, 27 Aug 2013 18:24:41 +0100 Subject: [PATCH] Added mode structures --- rosella.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rosella.go b/rosella.go index 1d008e0..a2eff91 100644 --- a/rosella.go +++ b/rosella.go @@ -32,6 +32,20 @@ type Channel struct { name string topic string clientMap map[string]*Client + mode ChannelMode + modeMap map[string]*ClientMode +} + +type ChannelMode struct { + anonymous bool //Nicks are hidden + secret bool //Channel is hidden from LIST + topicLocked bool //Only ops may change topic + moderated bool //Only ops and voiced may speak +} + +type ClientMode struct { + operator bool //Channel operator + voice bool //Has voice } type signalCode int