-rw-r--r-- | noncore/net/opieirc/ircchanneltab.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircchanneltab.cpp b/noncore/net/opieirc/ircchanneltab.cpp index 707e17f..881ded7 100644 --- a/noncore/net/opieirc/ircchanneltab.cpp +++ b/noncore/net/opieirc/ircchanneltab.cpp @@ -179,25 +179,28 @@ void IRCChannelTab::popupPing() { void IRCChannelTab::popupVersion() { if(m_list->currentItem() != -1) m_parentTab->session()->sendCTCPRequest(m_list->text(m_list->currentItem()), "VERSION", ""); } void IRCChannelTab::popupWhois() { if(m_list->currentItem() != -1) m_parentTab->session()->whois(m_list->text(m_list->currentItem())); } QString IRCChannelTab::title() { - return m_channel->channelname(); + if(!m_channel->channelname().startsWith("&")) + return m_channel->channelname(); + + return "&" + m_channel->channelname(); } IRCSession *IRCChannelTab::session() { return m_parentTab->session(); } void IRCChannelTab::remove() { if (session()->isSessionActive()) { session()->part(m_channel); } else { m_mainWindow->killTab(this); } |