author | skyhusker <skyhusker> | 2005-06-09 17:16:59 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-06-09 17:16:59 (UTC) |
commit | 6be140832d97bb485ba98bc9ea0f5cf622330595 (patch) (side-by-side diff) | |
tree | 48419a2990ea7f4ad815f0b113b92cff9137dddf /noncore/net/opieirc/ircservereditor.cpp | |
parent | 855e272549619c02efac516b2cd17828d7a3ad68 (diff) | |
download | opie-6be140832d97bb485ba98bc9ea0f5cf622330595.zip opie-6be140832d97bb485ba98bc9ea0f5cf622330595.tar.gz opie-6be140832d97bb485ba98bc9ea0f5cf622330595.tar.bz2 |
Fix bug 1666
Diffstat (limited to 'noncore/net/opieirc/ircservereditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircservereditor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/noncore/net/opieirc/ircservereditor.cpp b/noncore/net/opieirc/ircservereditor.cpp index 1fda868..e5c9ab5 100644 --- a/noncore/net/opieirc/ircservereditor.cpp +++ b/noncore/net/opieirc/ircservereditor.cpp @@ -1,4 +1,5 @@ #include "ircservereditor.h" +#include "ircchannel.h" /* OPIE */ #include <qpe/qpeapplication.h> @@ -69,8 +70,10 @@ void IRCServerEditor::accept() { QStringList channels = QStringList::split(QChar(','), m_channels->text()); for (QStringList::Iterator it = channels.begin(); it != channels.end(); ++it) { QString channelName = (*it).stripWhiteSpace(); - if (!channelName.startsWith("#") && !channelName.startsWith("+")) { - QMessageBox::critical(this, tr("Error"), tr("The channel list needs to contain a\ncomma separated list of channel\n names which start with either '#' or '+'")); + if (!IRCChannel::isValid(channelName)) { + QMessageBox::critical(this, tr("Error"), tr("The channel list needs to contain a\ncomma " + "separated list of valid\n channel names (starting \n" + "with one of '#' '+' '&' '!'")); return; } } |