Show
Ignore:
Timestamp:
04/15/08 00:23:42 (9 months ago)
Author:
tomoyo
Message:

とりあえず適当にモードを使うことで特定のチャンネルはエコーバックしないようにする機能を追加。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • TwitterIrcGateway/TwitterIrcGatewayCore/Group.cs

    r359 r373  
    66using System.IO; 
    77using System.Xml; 
     8using Misuzilla.Net.Irc; 
    89 
    910namespace Misuzilla.Applications.TwitterIrcGateway 
     
    5455                retGroups[group.Name] = group; 
    5556                group.IsJoined = false; 
     57                group.ChannelModes = group.ChannelModes == null ? new List<ChannelMode>() : group.ChannelModes; 
    5658            } 
    5759 
     
    6769        public Boolean IsJoined { get; set; } 
    6870        public String Topic { get; set; } 
     71        public List<ChannelMode> ChannelModes { get; set; } 
    6972 
    7073        public Group() 
    7174        { 
     75            ChannelModes = new List<ChannelMode>(); 
    7276        } 
    7377 
     
    8084            Name = name; 
    8185            Members = new List<string>(); 
     86            ChannelModes = new List<ChannelMode>(); 
    8287        } 
    8388 
     
    110115        } 
    111116 
     117        public Boolean IgnoreEchoBack 
     118        { 
     119            get 
     120            { 
     121                return ChannelModes.Exists(mode => mode.Mode == ChannelModeTypes.Private); 
     122            } 
     123        } 
     124 
    112125        #region IComparable �����o 
    113126