コード例 #1
0
        public static void AddVoice( ChatUser from, Channel channel, string param )
        {
            ChatUser target = ChatSystem.SearchForUser( from, param );

            if ( target != null )
                channel.AddVoiced( target, from );
        }
コード例 #2
0
        public static void AddVoice(ChatUser from, Channel channel, string param)
        {
            ChatUser target = ChatSystem.SearchForUser(from, param);

            if (target != null)
            {
                channel.AddVoiced(target, from);
            }
        }
コード例 #3
0
        public static void ToggleVoice(ChatUser from, Channel channel, string param)
        {
            ChatUser target = ChatSystem.SearchForUser(from, param);

            if (target == null)
            {
                return;
            }

            if (channel.IsVoiced(target))
            {
                channel.RemoveVoiced(target, from);
            }
            else
            {
                channel.AddVoiced(target, from);
            }
        }
コード例 #4
0
		public static void ToggleVoice( ChatUser from, Channel channel, string param )
		{
			ChatUser target = ChatSystem.SearchForUser( from, param );

			if ( target == null )
				return;

			if ( channel.IsVoiced( target ) )
				channel.RemoveVoiced( target, from );
			else
				channel.AddVoiced( target, from );
		}