IceChat Forums

IceChat 7 => IceChat 7 Scripts => Topic started by: AnonStoner on October 16, 2011, 05:38:58 PM

Title: possibly suspending processes?
Post by: AnonStoner on October 16, 2011, 05:38:58 PM
SO i wrote a short script for kicking people who dont belong in certain channels and here it is---

Code: [Select]
on *:JOIN:#privategamers: {
  if ($nick isreg $chan) {
    /kick #Privategamers $nick 4THIS IS FOR PRIVATE GAMERS ONLY! 3(If you are a true private gamer already, please let Jake know, or identify as your normal nickname!)4[banned: 5 minutes]
    ban -ku300 $chan $nick
    halt
  }
}

NOW, this would work perfectly fine, except that the script picks up the fact that the entering user has no modes like +v +h +o or +a set, before chanserv is able to set them, and proceeds to kick them

Normally, I would have a channel set as mode +i and set individual users as +I so that they can bypass the invite command, but the server im on doesnt support that.   Any ideas?  Is there some way i can suspend the script so that the if statement isnt evaluated until maybe 1 second after the user enters?

Thanks
-Jake
Title: Re: possibly suspending processes?
Post by: Snerf on October 16, 2011, 09:28:50 PM
Sorry, the mirc script engine in icechat is not a perfect copy, and some things just do not work the same.

As a result, there is no 'halt'