summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircchannel.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opieirc/ircchannel.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircchannel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircchannel.cpp b/noncore/net/opieirc/ircchannel.cpp
index 5d81596..b9e377d 100644
--- a/noncore/net/opieirc/ircchannel.cpp
+++ b/noncore/net/opieirc/ircchannel.cpp
@@ -46,3 +46,9 @@ IRCChannelPerson *IRCChannel::getPerson(QString nickname) {
return 0;
}
+bool IRCChannel::isValid(const QString &channel)
+{
+ return ( channel.startsWith("#") || channel.startsWith("&")
+ || channel.startsWith("+") || channel.startsWith("!"));
+}
+