]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/menuitems.js
Fix null in colour parser
[irc/quakenet/qwebirc.git] / js / ui / menuitems.js
index 76a0c5012f871af57ca5efc63c186b3b27865009..82ecb5f2653e80e57c9b0263d8f1202db36bdde9 100644 (file)
@@ -32,6 +32,10 @@ qwebirc.ui.MENU_ITEMS = function() {
     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) {
@@ -78,6 +82,16 @@ qwebirc.ui.MENU_ITEMS = function() {
       text: "devoice",
       fn: command("devoice"),
       predicate: compose(isOpped, targetVoiced)
+    },
+    {
+      text: "ignore",
+      fn: command("ignore"),
+      predicate: invert(isIgnored)
+    },
+    {
+      text: "unignore",
+      fn: command("unignore"),
+      predicate: isIgnored
     }
   ];
 }();