-qwebirc.ui.UI_COMMANDS = [
+qwebirc.ui.UI_COMMANDS_P1 = [
["Options", "options"],
- ["Add webchat to your site", "embedded"],
- ["Privacy policy", "privacy"],
+ ["Add webchat to your site", "embedded"]
+];
+
+qwebirc.ui.UI_COMMANDS_P2 = [
["Feedback", "feedback"],
- ["Frequently asked questions", "faq"],
["About qwebirc", "about"]
];
var channel = this.name; /* window name */
var myNick = this.client.nickname;
- return this.client.nickOnChanHasPrefix(myNick, channel, "@");
+ return this.client.nickOnChanHasAtLeastPrefix(myNick, channel, "@");
};
var isVoiced = function(nick) {
return this.client.nickOnChanHasPrefix(nick, channel, "+");
};
+ var isIgnored = function(nick) {
+ return this.client.isIgnored(nick);
+ };
+
var invert = qwebirc.util.invertFn, compose = qwebirc.util.composeAnd;
var command = function(cmd) {
text: "devoice",
fn: command("devoice"),
predicate: compose(isOpped, targetVoiced)
+ },
+ {
+ text: "ignore",
+ fn: command("ignore"),
+ predicate: invert(isIgnored)
+ },
+ {
+ text: "unignore",
+ fn: command("unignore"),
+ predicate: isIgnored
}
];
}();