From: Marcus Eggenberger Date: Fri, 30 Nov 2007 12:14:00 +0000 (+0000) Subject: Channel Identifiers are now handled case insensitive. This fixes the bug with the... X-Git-Tag: 0.1.0~47 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=00052de200f8b5f149a486cff1fb4623e1b99ed7;ds=sidebyside Channel Identifiers are now handled case insensitive. This fixes the bug with the missing users --- diff --git a/src/common/networkinfo.cpp b/src/common/networkinfo.cpp index 9f877212..918be516 100644 --- a/src/common/networkinfo.cpp +++ b/src/common/networkinfo.cpp @@ -210,7 +210,8 @@ QList NetworkInfo::ircUsers() const { return _ircUsers.values(); } -IrcChannel *NetworkInfo::newIrcChannel(const QString &channelname) { +IrcChannel *NetworkInfo::newIrcChannel(QString channelname) { + channelname = channelname.toLower(); if(!_ircChannels.contains(channelname)) { IrcChannel *channel = new IrcChannel(channelname, this); // mark IrcUser as already initialized to keep the SignalProxy from requesting initData @@ -231,7 +232,8 @@ IrcChannel *NetworkInfo::newIrcChannel(const QString &channelname) { } -IrcChannel *NetworkInfo::ircChannel(const QString &channelname) { +IrcChannel *NetworkInfo::ircChannel(QString channelname) { + channelname = channelname.toLower(); if(_ircChannels.contains(channelname)) return _ircChannels[channelname]; else diff --git a/src/common/networkinfo.h b/src/common/networkinfo.h index f2febc62..278053d5 100644 --- a/src/common/networkinfo.h +++ b/src/common/networkinfo.h @@ -76,8 +76,8 @@ public: IrcUser *ircUser(const QString &nickname) const; QList ircUsers() const; - IrcChannel *newIrcChannel(const QString &channelname); - IrcChannel *ircChannel(const QString &channelname); + IrcChannel *newIrcChannel(QString channelname); + IrcChannel *ircChannel(QString channelname); QList ircChannels() const; public slots: