summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-12-31 22:12:28 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-12-31 22:12:28 (GMT)
commit9ad4cc1f2b5117268348cc5625be782f717ad081 (patch)
tree919045e55ef0bf4d6d01a468aca483209185f04f /Swift/Controllers/Chat/ChatsManager.cpp
parent437adabd3798dae0f1eeea0b4f8c2d4212a083e6 (diff)
downloadswift-9ad4cc1f2b5117268348cc5625be782f717ad081.zip
swift-9ad4cc1f2b5117268348cc5625be782f717ad081.tar.bz2
Fix the MUC PM routing again.
Resolves: #725
Diffstat (limited to 'Swift/Controllers/Chat/ChatsManager.cpp')
-rw-r--r--Swift/Controllers/Chat/ChatsManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp
index 814d87d..722b98f 100644
--- a/Swift/Controllers/Chat/ChatsManager.cpp
+++ b/Swift/Controllers/Chat/ChatsManager.cpp
@@ -213,6 +213,9 @@ ChatController* ChatsManager::getChatControllerOrCreate(const JID &contact) {
ChatController* ChatsManager::getChatControllerIfExists(const JID &contact) {
if (chatControllers_.find(contact) == chatControllers_.end()) {
+ if (mucRegistry_->isMUC(contact.toBare())) {
+ return NULL;
+ }
//Need to look for an unbound window to bind first
JID bare(contact.toBare());
if (chatControllers_.find(bare) != chatControllers_.end()) {