adium-1.4 2989:410d7f1deeb0: Close chats when they aren't open a...
commits at adium.im
commits at adium.im
Wed Jun 23 09:57:13 UTC 2010
details: http://hg.adium.im/adium-1.4/rev/410d7f1deeb0
revision: 2989:410d7f1deeb0
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Mon May 31 19:31:54 2010 +0200
Close chats when they aren't open and not going to display anything, to prevent leaking NickServs etc.
Fixes #13968
(transplanted from 98f7fa4b4d26f19d4043ccf73dc6c2e77ca56cd8)
diffs (15 lines):
diff -r 5ad7250a87cd -r 410d7f1deeb0 Source/AIContentController.m
--- a/Source/AIContentController.m Fri Jun 11 22:13:08 2010 +0200
+++ b/Source/AIContentController.m Mon May 31 19:31:54 2010 +0200
@@ -558,6 +558,11 @@
//We are no longer in the process of receiving this object
[objectsBeingReceived removeObject:inObject];
+
+ if (![inObject displayContent] && ![inObject.chat isOpen]) {
+ // chat wasn't open, so close it so it doesn't leak
+ [adium.interfaceController closeChat:inObject.chat];
+ }
}
#pragma mark -
More information about the commits
mailing list