Notices into the active panel
authorDarren <darren@Darrens-MacBook-Pro.local>
Mon, 20 May 2013 15:11:46 +0000 (16:11 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Mon, 20 May 2013 15:11:46 +0000 (16:11 +0100)
client/assets/dev/model_network.js

index e43baa29bc9378de3d36c6323af23c5ce077f336..a085327bc0aafc6bf3736025eb537a4b410a582b 100644 (file)
         }
 
         panel.addMsg('[' + (event.nick||'') + ']', event.msg);
+
+        // Show this notice to the active panel if it didn't have a set target
+        if (panel === this.panels.server)
+            _kiwi.app.panels().active.addMsg('[' + (event.nick||'') + ']', event.msg);
     }