}\r
});\r
\r
+ gw.on('onaway', function (event) {\r
+ $.each(that.panels.models, function (index, panel) {\r
+ if (!panel.isChannel()) return;\r
+\r
+ member = panel.get('members').getByNick(event.nick);\r
+ if (member) {\r
+ member.set('away', !(!event.trailing));\r
+ }\r
+ });\r
+ });
+\r
\r
gw.on('onlist_start', function (data) {\r
- if (kiwi.app.channel_list) {\r
- kiwi.app.channel_list.close();\r
- delete kiwi.app.channel_list;\r
+ if (_kiwi.app.channel_list) {\r
+ _kiwi.app.channel_list.close();\r
+ delete _kiwi.app.channel_list;\r
}\r
\r
- var panel = new kiwi.model.Applet(),\r
- applet = new kiwi.applets.Chanlist();\r
+ var panel = new _kiwi.model.Applet(),\r
+ applet = new _kiwi.applets.Chanlist();\r
\r
panel.load(applet);\r
\r