Aurora.Addon.IRCChat.IRCParcelService.JoinChannel C# (CSharp) Method

JoinChannel() private static method

private static JoinChannel ( MetaBuilders.Irc.Client client, string channel, IScenePresence presence ) : void
client MetaBuilders.Irc.Client
channel string
presence IScenePresence
return void
        private static void JoinChannel(Client client, string channel, IScenePresence presence)
        {
            client.SendJoin(channel);
            IChatModule chatModule = presence.Scene.RequestModuleInterface<IChatModule>();
            if(chatModule != null)
            {
                chatModule.TrySendChatMessage(presence, presence.AbsolutePosition, UUID.Zero,
                        "System", ChatTypeEnum.Say, "You joined " + channel, ChatSourceType.Agent, 20);
            }
        }