Jump to content

why?


Wish

Recommended Posts

alias sban {

/ban $iif($2 isnum 0-100,$+(-u,$calc($2 * 60)),) $+(q~:,$address($1,2))

}

 

So this code? why do i need this part "$iif($2 isnum 0-100,$+(-u,$calc($2 * 60)),)" why can i not just have the calc $2 * 60 part and leave the isnum thing out?

 

appreciate any help.. thanks!

Link to comment
Share on other sites

it's basically saying that if the second word after the alias is a number between 0 and 100 then it will ban for that number of minutes, otherwise it will just ban for the amount of time stated.

eg:

sban person 2 - this will ban person for 120 seconds (2 x 60)

sban person 120 - this will ban for 120 seconds (120 > 100)

Link to comment
Share on other sites

  • 3 weeks later...

it's basically saying that if the second word after the alias is a number between 0 and 100 then it will ban for that number of minutes, otherwise it will just ban for the amount of time stated.

eg:

sban person 2 - this will ban person for 120 seconds (2 x 60)

sban person 120 - this will ban for 120 seconds (120 > 100)

 

Anything above 100 means the ban will be permanent in the above alias.

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...