_.each(fn_to_bind, function(fn, event_name) {\r
controlbox.on(event_name, _.bind(fn, that));\r
});\r
- },\r
-\r
-\r
- isChannelName: function (channel_name) {\r
- var channel_prefix = _kiwi.gateway.get('channel_prefix');\r
-\r
- if (!channel_name || !channel_name.length) return false;\r
- return (channel_prefix.indexOf(channel_name[0]) > -1);\r
}\r
});\r
\r
\r
if (ev.params.length === 0) return;\r
\r
- if (this.isChannelName(ev.params[0])) {\r
+ if (this.connections.active_connection.isChannelName(ev.params[0])) {\r
channel_name = ev.params[0];\r
ev.params.shift();\r
} else {\r
model: _kiwi.model.Member,\r
comparator: function (a, b) {\r
var i, a_modes, b_modes, a_idx, b_idx, a_nick, b_nick;\r
- var user_prefixes = _kiwi.gateway.get('user_prefixes');\r
+ var user_prefixes = this.channel.get('network').get('user_prefixes');\r
+\r
a_modes = a.get("modes");\r
b_modes = b.get("modes");\r
+\r
// Try to sort by modes first\r
if (a_modes.length > 0) {\r
// a has modes, but b doesn't so a should appear first\r