Beispiel #1
0
        protected void HandleInvite(object sender, IUserInvitedToChannelEventArgs e)
        {
            if (!Config.RejoinOnInvite)
            {
                return;
            }

            if (Config.AutoJoinedChannelsOnly && !ConnectionManager.AutoJoinChannels.Contains(e.Channel))
            {
                return;
            }

            ConnectionManager.JoinChannel(e.Channel);
        }
 protected virtual void OnInvited(IUserInvitedToChannelEventArgs e)
 {
     HandleEvent(InvitedSubscribers, e, "invitation");
 }