obj = qwebirc.ui.ChannelNameTabCompleter;
} else if(ltext.match(/^\/(q|query|msg) /i)) {
obj = qwebirc.ui.QueryTabCompleter;
+ } else if(w.type == qwebirc.ui.WINDOW_QUERY) {
+ obj = qwebirc.ui.QueryNickTabCompleter;
} else if(w.type == qwebirc.ui.WINDOW_CHANNEL) {
/* "slug[TAB]" == "slug: " */
if(preword == "") {
}
});
+qwebirc.ui.QueryNickTabCompleter = new Class({
+ Extends: qwebirc.ui.BaseTabCompleter,
+ initialize: function(prefix, existingText, suffix, window) {
+ nick = window.name
+ this.parent(window.client, prefix, existingText, suffix, [nick]);
+ }
+});
+
qwebirc.ui.ChannelNameTabCompleter = new Class({
Extends: qwebirc.ui.BaseTabCompleter,
initialize: function(prefix, existingText, suffix, window) {