From: Chris Porter Date: Sat, 24 Apr 2010 00:56:36 +0000 (+0100) Subject: Fixes issue #127, seems I never implemented this! X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/commitdiff_plain/9aea28e85828484de167329405662a290af35c6d Fixes issue #127, seems I never implemented this! --- diff --git a/js/irc/commandparser.js b/js/irc/commandparser.js index 3ef19dc..cf9ed5c 100644 --- a/js/irc/commandparser.js +++ b/js/irc/commandparser.js @@ -22,7 +22,8 @@ qwebirc.irc.BaseCommandParser = new Class({ this.parentObject.newActiveLine("OUR" + type, extra); return; } else if(window.type == qwebirc.ui.WINDOW_CHANNEL) { - type = "CHAN" + type; + this.parentObject.newChanLine(target, "OURCHAN" + type, null, extra); + return; } else { type = "PRIV" + type; } diff --git a/js/irc/ircclient.js b/js/irc/ircclient.js index fff9ae7..0356d4f 100644 --- a/js/irc/ircclient.js +++ b/js/irc/ircclient.js @@ -41,11 +41,16 @@ qwebirc.irc.IRCClient = new Class({ if(!extra) extra = {}; - extra["n"] = user.hostToNick(); - extra["h"] = user.hostToHost(); + if($defined(user)) { + extra["n"] = user.hostToNick(); + extra["h"] = user.hostToHost(); + } extra["c"] = channel; extra["-"] = this.nickname; + if(!(this.ui.uiOptions.NICK_OV_STATUS)) + delete extra["@"]; + this.newLine(channel, type, extra); }, newServerLine: function(type, data) { diff --git a/js/ui/panes/options.js b/js/ui/panes/options.js index ea24470..251b01d 100644 --- a/js/ui/panes/options.js +++ b/js/ui/panes/options.js @@ -26,7 +26,7 @@ qwebirc.config.DEFAULT_OPTIONS = [ }], [2, "DEDICATED_MSG_WINDOW", "Send privmsgs to dedicated messages window", false], [4, "DEDICATED_NOTICE_WINDOW", "Send notices to dedicated message window", false], - [3, "NICK_OV_STATUS", "Show status (@/+) before nicknames in nicklist", true], + [3, "NICK_OV_STATUS", "Show status (@/+) before nicknames in channel lines", true], [5, "ACCEPT_SERVICE_INVITES", "Automatically join channels when invited by Q", true], [6, "USE_HIDDENHOST", "Hide your hostmask when authed to Q (+x)", true], [8, "LASTPOS_LINE", "Show a last position indicator for each window", true, {