-rw-r--r-- | noncore/net/opieirc/ircchanneltab.cpp | 3 |
1 files changed, 3 insertions, 0 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() { | |||
179 | 179 | ||
180 | void IRCChannelTab::popupVersion() { | 180 | void IRCChannelTab::popupVersion() { |
181 | if(m_list->currentItem() != -1) | 181 | if(m_list->currentItem() != -1) |
182 | m_parentTab->session()->sendCTCPRequest(m_list->text(m_list->currentItem()), "VERSION", ""); | 182 | m_parentTab->session()->sendCTCPRequest(m_list->text(m_list->currentItem()), "VERSION", ""); |
183 | } | 183 | } |
184 | 184 | ||
185 | void IRCChannelTab::popupWhois() { | 185 | void IRCChannelTab::popupWhois() { |
186 | if(m_list->currentItem() != -1) | 186 | if(m_list->currentItem() != -1) |
187 | m_parentTab->session()->whois(m_list->text(m_list->currentItem())); | 187 | m_parentTab->session()->whois(m_list->text(m_list->currentItem())); |
188 | } | 188 | } |
189 | 189 | ||
190 | QString IRCChannelTab::title() { | 190 | QString IRCChannelTab::title() { |
191 | if(!m_channel->channelname().startsWith("&")) | ||
191 | return m_channel->channelname(); | 192 | return m_channel->channelname(); |
193 | |||
194 | return "&" + m_channel->channelname(); | ||
192 | } | 195 | } |
193 | 196 | ||
194 | IRCSession *IRCChannelTab::session() { | 197 | IRCSession *IRCChannelTab::session() { |
195 | return m_parentTab->session(); | 198 | return m_parentTab->session(); |
196 | } | 199 | } |
197 | 200 | ||
198 | void IRCChannelTab::remove() { | 201 | void IRCChannelTab::remove() { |
199 | if (session()->isSessionActive()) { | 202 | if (session()->isSessionActive()) { |
200 | session()->part(m_channel); | 203 | session()->part(m_channel); |
201 | } else { | 204 | } else { |
202 | m_mainWindow->killTab(this); | 205 | m_mainWindow->killTab(this); |
203 | } | 206 | } |