Permalink
Browse files

fix #894:

remove hack: FIX THE CODE INSTEAD!
  • Loading branch information...
abma committed Oct 7, 2018
1 parent b8d93f7 commit 1aeed3d6f35ec54665ca7a3c0aefc7889a8304d8
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/gui/chatpanel.cpp
@@ -1016,17 +1016,6 @@ bool ChatPanel::Say(const wxString& message) //FIXME: remove all parsing / token
return true;
}

//we need to disable the channel tab if leaving manually
if (line.Upper().StartsWith(_T( "LEAVE" ))) {
wxString channame = line.AfterFirst(' ').BeforeFirst(' ');
try {
Channel& chan = m_server->GetChannel(STD_STRING(channame));
chan.Leave();
chan.panel = 0;
} catch (assert_exception) {
}
}

m_server->SendCmd(STD_STRING(line), "");
OutputLine(_("Sent: \"") + line + _T("\""), sett().GetChatColorNormal());
}

0 comments on commit 1aeed3d

Please sign in to comment.