diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-12 11:40:45 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-12 12:09:14 +0100 |
commit | d3f698dbad2bc335765ee931781229cc0f0d123d (patch) | |
tree | ea839f8470bf272990bc927a707e539ac58984f5 /src/gui/widgets | |
parent | 454c49e4e136ed2a43fd118fcd830f04e114472a (diff) | |
download | mana-d3f698dbad2bc335765ee931781229cc0f0d123d.tar.gz mana-d3f698dbad2bc335765ee931781229cc0f0d123d.tar.bz2 mana-d3f698dbad2bc335765ee931781229cc0f0d123d.tar.xz mana-d3f698dbad2bc335765ee931781229cc0f0d123d.zip |
Removed some Channel and ChannelTab related silliness
* Channel always has a ChannelTab, so need to check it for null
* Removed duplicate handling of 'topic' command
* No need to set Channel::mTab twice
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/channeltab.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gui/widgets/channeltab.cpp b/src/gui/widgets/channeltab.cpp index a7370a4c..31373748 100644 --- a/src/gui/widgets/channeltab.cpp +++ b/src/gui/widgets/channeltab.cpp @@ -32,7 +32,6 @@ ChannelTab::ChannelTab(Channel *channel) : ChatTab(channel->getName()), mChannel(channel) { - channel->setTab(this); } ChannelTab::~ChannelTab() @@ -102,10 +101,6 @@ bool ChannelTab::handleCommand(const std::string &type, { Net::getChatHandler()->setChannelTopic(mChannel->getId(), args); } - else if (type == "topic") - { - Net::getChatHandler()->setChannelTopic(mChannel->getId(), args); - } else if (type == "quit") { Net::getChatHandler()->quitChannel(mChannel->getId()); |