# HG changeset patch # User matthew@heavyhorse.vm.bytemark.co.uk # Date 1271439893 -3600 # Node ID c775513a5d7802143ca2cacf16ea3ab04d4c7e91 # Parent 42f5669be677c2a1a4a54682a5121f2a25d3bbcd Remove the current assistant if they leave the room diff -r 42f5669be677 -r c775513a5d78 support-chat/js/supportchat.js --- a/support-chat/js/supportchat.js Fri Apr 16 18:43:48 2010 +0100 +++ b/support-chat/js/supportchat.js Fri Apr 16 18:44:53 2010 +0100 @@ -131,6 +131,13 @@ } }, + // Someone left the question MUC + left: function (stanza, muc, occupant) + { + if(occupant.nick == current_assistant) + set_assistant(null); + }, + // Handle incoming messages message: function (stanza, muc, nick, message) {