Difference between revisions of "Ban"

From Scriptwiki
Jump to: navigation, search
 
m
 
(4 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
</table>
 
</table>
  
If no type is spezified, mIRC uses the whole nick!*user@host to do the ban. If you are banning an IP address then a [[iswm|wildcard]] replaces the last number of the IP address. If you are on the channel, you don't need to spezify #channel.
+
If no type is spezified, mIRC uses the whole nick!*user@host to do the ban. If you are banning an IP address then a [[If-Then-Else#The_Operators|wildcard]] replaces the last number of the IP address. If you are on the channel, you don't need to spezify #channel.
  
 
== Example ==
 
== Example ==
Bans the address *!*@foo.net in the channel #help.script
 
 
  /ban #help.script *!*@foo.net
 
  /ban #help.script *!*@foo.net
 +
Bans the address *!*@foo.net in the channel #help.script.
  
Removes the ban moo!*@* from #help.script
 
 
  /ban -r #help.script moo!*@*
 
  /ban -r #help.script moo!*@*
 +
Removes the ban moo!*@* from #help.script.
  
 +
/ban -ku30 #help.script foobar 5 out!
 
Bans the user foobar in #help.script with its [[$mask|address-type 5]] and kicks him out with the reason "out!". After 30seconds, the ban will be removed.
 
Bans the user foobar in #help.script with its [[$mask|address-type 5]] and kicks him out with the reason "out!". After 30seconds, the ban will be removed.
/ban -ku30 #help.script foobar 5 out!
+
 
 
== See Also ==
 
== See Also ==
For a list of bantypes, take a look at [[$mask]].
+
* {{Relatedraws|userhost}}
 
+
* [[$mask]] for a list of bantypes.
This command uses mIRC's [[IAL|internal address list]].
+
* [[:Category:IAL|internal address list]].
  
{{Relatedraws|userhost}}
+
[[Category:Commands]]

Latest revision as of 08:52, 2 July 2007

Bans someone from a channel.

/ban [-kruN] [#channel] <nickname|address> [type] [reason]

This commands includes a /userhost on the user and a /mode #channel +b <user address>.

SwitchMeaning
kmIRC does a kick/ban combination.
rThe ban will be removed.
uNmIRC will unset the ban after N seconds.

If no type is spezified, mIRC uses the whole nick!*user@host to do the ban. If you are banning an IP address then a wildcard replaces the last number of the IP address. If you are on the channel, you don't need to spezify #channel.

Example

/ban #help.script *!*@foo.net

Bans the address *!*@foo.net in the channel #help.script.

/ban -r #help.script moo!*@*

Removes the ban moo!*@* from #help.script.

/ban -ku30 #help.script foobar 5 out!

Bans the user foobar in #help.script with its address-type 5 and kicks him out with the reason "out!". After 30seconds, the ban will be removed.

See Also