ProgrammingChicken

super duper

Dec 29th, 2017
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Ignoring thing by Lumage w/ update by Omiwa
  2. commands.push(new Command("ignore", function(param){
  3.    var params = quickParamParse(param);
  4.    if(params.length !== 1){
  5.       warningMessage("username where is??");
  6.       return;
  7.    }
  8.     genericXHRSimple("/query/request/user?username=" + params[0], function(output){
  9.       ignore(JSON.parse(output).result.uid,true);
  10.    });
  11. }));
  12. commands.push(new Command("unignore", function(param){
  13.    var params = quickParamParse(param);
  14.    if(params.length !== 1){
  15.       warningMessage("username where is??");
  16.       return;
  17.    }
  18.     genericXHRSimple("/query/request/user?username=" + params[0], function(output){
  19.       ignore(JSON.parse(output).result.uid,false);
  20.    });
  21. }));
RAW Paste Data