same with embedded wizard\r
Various options:\r
- notices going to active window\r
- - query behaviour\r
- - @+ in nick shown in chantext\r
Sound\r
Last position line\r
Store options server side when logged in.\r
if(!this.parentObject.isChannel(target))
this.parentObject.pushLastNick(target);
if(this.send("PRIVMSG " + target + " :" + message))
- this.newQueryLine(target, "MSG", message, {});
+ this.newQueryLine(target, "MSG", message, {"@": this.parentObject.getNickStatus(target, this.parentObject.nickname)});
}],
cmd_NOTICE: [false, 2, 2, function(args) {
var target = args[0];
this.newTargetOrActiveLine(nick, "CTCPREPLY", {"m": args, "x": type, "h": host, "n": nick, "-": this.nickname});
},
+ getNickStatus: function(channel, nick) {
+ var n = this.tracker.getNickOnChannel(nick, channel);
+ if(!$defined(n))
+ return "";
+
+ if(n.prefixes.length == 0)
+ return "";
+
+ return n.prefixes.charAt(0);
+ },
channelPrivmsg: function(user, channel, message) {
- this.tracker.updateLastSpoke(user.hostToNick(), channel, new Date().getTime());
- this.newChanLine(channel, "CHANMSG", user, {"m": message});
+ var nick = user.hostToNick();
+
+ this.tracker.updateLastSpoke(nick, channel, new Date().getTime());
+ this.newChanLine(channel, "CHANMSG", user, {"m": message, "@": this.getNickStatus(channel, nick)});
},
channelNotice: function(user, channel, message) {
this.newChanLine(channel, "CHANNOTICE", user, {"m": message});
}
}],
[2, "DEDICATED_MSG_WINDOW", "Use dedicated messages window", false],
- [3, "TEXT_STATUS", "Show status (@/+) before nicknames", true]
+ [3, "NICK_OV_STATUS", "Show status (@/+) before nicknames", true]
];
qwebirc.config.DefaultOptions = null;
"INVITE": ["$N invites you to join $c", true],
"HILIGHT": ["$C4"],
"HILIGHTEND": ["$O"],
- "CHANMSG": ["<$($N$)> $m"],
+ "CHANMSG": ["<$@$($N$)> $m"],
"PRIVMSG": ["<$($N$)> $m"],
"CHANNOTICE": ["-$($N$):$c- $m"],
"PRIVNOTICE": ["-$($N$)- $m"],
- "OURCHANMSG": ["<$N> $m"],
+ "OURCHANMSG": ["<$@$N> $m"],
"OURPRIVMSG": ["<$N> $m"],
"OURTARGETEDMSG": ["*$[$t$]* $m"],
"OURTARGETEDNOTICE": ["[notice($[$t$])] $m"],