!kick is a chat command, which allows the use of !kick in Special:Chat.



!kick can be used to kick a user out of the chat, with a single command:

!kick userToKick

This command can be used only by moderators, and will appear as a normal message, if made by a regular user.

If userToKick is any user absent on the chat, an inline alert is shown, with a message, which can be customized, using the window.absentMessage variable. For instance:

window.absentMessage = '<user> is currently not at the chat.';
    type: 'script',
    articles: [

<user> will be replaced by the name of the user which was to be kicked.

If you do not want your users to be kicking users with a higher effective user group then you can add

window.NoKickHigherUps = true;

into MediaWiki:Chat.js. Users will still be able to set this variable in their personal JS to false if they want.

Staff cannot be kicked with this script, regardless if the kicking user is a chat moderator or administrator.


August 12, 2018
NoKickHigherUps option implemented.
June 26, 2018
I18n-js implemented.
September 15, 2014
Script published.
Community content is available under CC-BY-SA unless otherwise noted.