botguard: first pass at full implementation. fingers crossed...

This commit is contained in:
Jon Atkins
2014-09-15 20:50:58 +01:00
parent bbbc3493c9
commit 92aae954a8
5 changed files with 23 additions and 11 deletions

View File

@ -451,8 +451,14 @@ window.chat.toggle = function() {
window.chat.request = function() {
console.log('refreshing chat');
chat.requestFaction(false);
chat.requestPublic(false);
var tab = chat.getActive();
//TODO: add 'alerts' tab, and add the matching case in here
if (tab == 'faction') {
chat.requestFaction(false);
} else {
// the 'public', 'full' and 'compact' tabs are all based off the 'public' COMM data
chat.requestPublic(false);
}
}