["Add webchat to your site", "embedded"],
["Privacy policy", "privacy"],
["Feedback", "feedback"],
- ["Frequently asked questions", "faq"],
+ ["Help!", "help"],
["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
}
];
}();