public void MarshalRegistered(IRCMarshal marshal)
{
if (this.CurrentTab != null && this.CurrentTab.Marshal == marshal)
{
this.channelBrowserToolStripButton.Enabled = true;
this.channelBrowserToolStripMenuItem.Enabled = true;
if (this.CurrentTab.TabType == IRCTabType.Channel)
{
IRCChannel channel = this.CurrentTab.Marshal.GetChannelByTab(this.CurrentTab);
if (channel != null)
{
this.inputTextBox.MaxLength = this.CurrentTab.Marshal.GetChannelByTab(this.CurrentTab).MaximumMessageSize;
}
}
this.UpdateStatusBarText();
}
}