From b30f28de8d5fa29001bc73a0a0e56ef653f1269f Mon Sep 17 00:00:00 2001 From: skyhusker Date: Tue, 31 May 2005 21:08:33 +0000 Subject: Fix channel name validation. Thanks to hrw for reporting. --- diff --git a/noncore/net/opieirc/ircservertab.cpp b/noncore/net/opieirc/ircservertab.cpp index d3c0448..5eb1758 100644 --- a/noncore/net/opieirc/ircservertab.cpp +++ b/noncore/net/opieirc/ircservertab.cpp @@ -117,9 +117,10 @@ void IRCServerTab::executeCommand(IRCTab *tab, QString line) { stream >> channel; /* According to RFC 1459 */ if (channel.length() > 0 && channel.length() < 200 && - channel.find(",") == -1 && channel.find("") == -1) { + channel.find(",") == -1 && channel.find('\007') == -1) { - if (!channel.startsWith("#") && !channel.startsWith("&")) { + if (!channel.startsWith("#") && !channel.startsWith("&") + && !channel.startsWith("+") && !channel.startsWith("!")) { channel = channel.prepend("#"); } m_session->join(channel); -- cgit v0.9.0.2