TEMPBAN
Temporarily ban a hostmask on a channel.
Usage:
/msg Q TEMPBAN <#channel> <banmask> <duration> [<reason>]
Parameters:
<#channel>
- The channel to add the temporary ban to.<banmask>
- The banmask to ban.<duration>
- The duration to set the ban to.<reason>
- The ban reason. Default: Banned.
Additional info:
If the ban is removed from the channel (e.g. by a channel op or the BANTIMER feature) then the ban will be reapplied if a matching user joins the channel. When the time expires, the ban will be removed automatically.
Bans set with the TEMPBAN command can be removed before they expire with the BANCLEAR or BANDEL commands. Any users matching the hostmask will be kicked from the channel.
When using the command, the duration specified can be m (minutes), h (hours), d (days), w (weeks), M (months) and y (years), for example 3d, 5h, 1h30m, 1M.
Requirements:
To use the TEMPBAN command you must have at least the master flag (+m
) in the CHANLEV list on the channel.
Examples:
This will temporarily ban the user John from channel #channel for 1 year and 2 weeks:
`/msg Q TEMPBAN #channel John!*@* 1y2w`
This will temporarily ban the account named JohnAuth from the channel #channel for 3 days with reason "Not wanted":
`/msg Q TEMPBAN #channel *!*@JohnAuth.users.quakenet.org 3d Not wanted`
Wrong usage:
Trying to set 0 as time (to set a permanent ban use the PERMBAN command):
`/msg Q TEMPBAN #channel John!*@* 0` `-Q- Duration too long or invalid: 0`
See also:
Other help articles under Q Commands
- ADDUSER
- AUTH
- AUTHHISTORY
- AUTOLIMIT
- BANCLEAR
- BANDEL
- BANLIST
- BANTIMER
- CHALLENGE
- CHALLENGEAUTH
- CHANFLAGS
- CHANLEV
- CHANMODE
- CHANOPHISTORY
- CHANSTAT
- CLEARCHAN
- DEOPALL
- GIVEOWNER
- HELLO
- HELP
- INVITE
- NEWPASS
- OP
- PERMBAN
- RECOVER
- REMOVEUSER
- REQUESTOWNER
- REQUESTPASSWORD
- RESET
- SETTOPIC
- SHOWCOMMANDS
- TEMPBAN
- UNBANALL
- UNBANMASK
- UNBANME
- USERFLAGS
- USERS
- VERSION
- VOICE
- WELCOME
- WHOAMI
- WHOIS