예제 #1
0
 public void RegisterChannel( string p, Channel channel )
 {
     _channels.ReplaceOrAdd( p, channel );
 }
예제 #2
0
 private void HandleJoin( object sender, MessageEventArgs ev )
 {
     var target = ev.Message.Args[0];
     var channel = LookUpChannel( target );
     if ( null == channel ) {
         channel = new Channel {
             Name     = target,
             Server   = this,
             SelfUser = SelfUser,
         };
         _channels.Add( channel.Name, channel );
     }
 }
예제 #3
0
 private void HandleJoin( object sender, MessageEventArgs ev )
 {
     ev.Message.Target = ev.Message.Args[ 0 ];
     var channel = new Channel {
         Name = ev.Message.Target,
         ProtocolHandler = _protocolHandler,
         SelfUser = SelfUser,
         Server = this
     };
     DebugDumpEvent( ev );
     OnJoin( ev.Message );
 }