Example #1
0
eventHandler.removeListener = function(from, eventName){
  if( ! allStrings([from, eventName]) || ! events[from][eventName] ){
    L.debug("WARNING! A plugin unsuccessfully tried to remove a listener that doesn't exist.");
  }
  bot.removeListener(eventName, events[from][eventName]);
}
Example #2
0
eventHandler.unbindDefaultEvent = function(fo){
  var fq = "default" + fo.slice(0,1).toUpperCase() + fo.slice(1) + "Handler";
  if( events[fq] ) return bot.removeListener(fo, events[fq]);
  else return false;
}
Example #3
0
eventHandler.removeEvent = function(callback){
  L.debug("WARNING! eventHandler.removeEvent() is deprecated and may be removed in a further release. Please use eventHandler.removeListener() instead.");
  bot.removeListener(callback);
}