// <autoperform new_channel="/action" />
 public override void OnChannelCreated( IrcView view, IrcView.Channel channel )
 {
     foreach ( XmlNode node in Settings.XML.SelectNodes("//autoperform") ) {
         foreach ( XmlAttribute attribute in node.Attributes )
         switch ( attribute.Name )
         {
         case "new_channel":
             view.ExecuteOn( channel, attribute.Value );
             break;
         default:
             throw new FormatException( "Unexpected attribute "+attribute.Name+" in <autoperform/> tag" );
         }
     }
 }
 public override void OnChannelCreated( IrcView view, IrcView.Channel channel )
 {
     base.OnChannelCreated( view, channel );
 }
 public override void OnIrcViewConnected( IrcView view )
 {
     base.OnIrcViewConnected( view );
 }
示例#4
0
		public virtual void OnChannelCreated( IrcView view, IrcView.Channel channel ) {}
示例#5
0
		public virtual void OnIrcViewDisconnected( IrcView view ) { var el = this as NET.IEventListener; if( el != null ) view.IrcListeners.Remove(el); }