Bug 740749 - Starting a conversation with an IRC contact does not remove it from the online contacts list. r=florian,a=bienvenu
authorPatrick Cloke <clokep@gmail.com>
Fri, 30 Mar 2012 20:18:29 -0400
changeset 11166 8deaee43b177ac6c60dec9bc8c55b97ad19f4b79
parent 11165 9306cdde548394da329e162c2fbe98655a44c75b
child 11167 e8b9f124dd39b8c8e739f47e0bde80ea06077689
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian, bienvenu
bugs740749
Bug 740749 - Starting a conversation with an IRC contact does not remove it from the online contacts list. r=florian,a=bienvenu
chat/protocols/irc/irc.js
--- a/chat/protocols/irc/irc.js
+++ b/chat/protocols/irc/irc.js
@@ -250,16 +250,19 @@ ircParticipant.prototype = {
   get voiced() this._modes.indexOf("v") != -1,
   get halfOp() this._modes.indexOf("h") != -1,
   get op() this._modes.indexOf("o") != -1,
   get founder() this._modes.indexOf("n") != -1,
   get typing() false
 };
 
 function ircConversation(aAccount, aName) {
+  if (aAccount.hasBuddy(aName))
+    this.buddy = aAccount.getBuddy(aName);
+
   this._init(aAccount, aName);
 }
 ircConversation.prototype = {
   __proto__: GenericConvIMPrototype,
   sendMsg: function(aMessage) {
     this._account.sendMessage("PRIVMSG", [this.name, aMessage]);
 
     // Since the server doesn't send us a message back, just assume the message