Aurora.Voice.Whisper.ChannelManager.GetOrCreate C# (CSharp) Method

GetOrCreate() public method

public GetOrCreate ( string name ) : int
name string
return int
        public int GetOrCreate(string name)
        {
            lock (chan_ids)
            {
                if (chan_ids.ContainsKey(name))
                    return chan_ids[name];
                m_log.DebugFormat("[MurmurVoice] Channel '{0}' not found. Creating.", name);
                return chan_ids[name] = m_server.addChannel(name, parent_chan);
            }
        }