public static void AddVoice( ChatUser from, Channel channel, string param ) { ChatUser target = ChatSystem.SearchForUser( from, param ); if ( target != null ) channel.AddVoiced( target, from ); }
public static void AddVoice(ChatUser from, Channel channel, string param) { ChatUser target = ChatSystem.SearchForUser(from, param); if (target != null) { channel.AddVoiced(target, from); } }
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); } }
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 ); }