public void RegisterChannel( string p, Channel channel ) { _channels.ReplaceOrAdd( p, channel ); }
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 ); } }
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 ); }