Squirrel/Server/Functions/Misc/UnbanIP
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function unbans the given IP and removes it from the banlist. == Syntax == <code>bool UnbanIP( string IP )</code> == Arguments == * '''IP''' - The IP address to be unban...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "unban" )UnbanIP( text ) | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This function is used to unban a previously banned IP. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Misc}} | {{Squirrel/Server/Functions/Misc}} |
Revision as of 02:39, 7 January 2010
This function unbans the given IP and removes it from the banlist.
Syntax
bool UnbanIP( string IP )
Arguments
- IP - The IP address to be unbanned
Example
function onPlayerCommand( player, command, text ) { if ( command == "unban" )UnbanIP( text ) }
Notes
This function is used to unban a previously banned IP.