Stable/ChatPlugins/Modules/multiKick

chatPlugins.modules.multiKick.modOnly = true; if (wgUserGroups.indexOf("chatmoderator")!=-1) { chatPlugins.modules.multiKick.open = function { var $multiKickWindowHTML = $.showCustomModal( "MultiKick", ' Select the users you would like to kick:  ', {		id: "multiKickWindow",		width: 400,		buttons: [		    {		    id: "cancel",		    message: "Cancel",		    handler: function  {		      chatPlugins.modules.multiKick.cancel;		      }		    },		    {		    id: "chatPlugins.modules.multiKick.start",		    defaultButton: true,		    message: "Kick",		    handler: function  {		      chatPlugins.modules.multiKick.start;		      }		    }		]	  }); $(".close").click(chatPlugins.modules.multiKick.cancel); $('body').append(' '); multiKickUserTable = "" for (i=0;i ' + mainRoom.model.users._byCid[Object.keys(mainRoom.model.users._byCid)[i]].attributes.name + ' '; multiKickUserTable += ' '; }	 else { multiKickUserTable += ' '; multiKickUserTable += ' ' + mainRoom.model.users._byCid[Object.keys(mainRoom.model.users._byCid)[i]].attributes.name + ' '; }   }	  if ((Object.keys(mainRoom.model.users._byCid).length % 2)!=1) { multiKickUserTable += ' '; }	 $('#multiKickUserTable').append(multiKickUserTable); } chatPlugins.modules.multiKick.cancel = function { $('#multiKickWindow').remove; $('.blackout').remove; } chatPlugins.modules.multiKick.start = function { if ($(".multiKickUser:checked").length == 0) { $("#multiKickHeader").css("color", "red").css("font-weight", "bold"); return; }	 else { users = []; for (i=0;i<$(".multiKickUser:checked").length;i++) { mainRoom.kick({name:$(".multiKickUser:checked")[i].value}); }		 chatPlugins.modules.multiKick.cancel; } }  if( !$("#multiKickButton").length ) { $("div.chattopic").append(' •  multikick '); } $("#multiKickButton").click(chatPlugins.modules.multiKick.open); } console.log("[OPTIONS] multiKick: Loaded");