Hi..I'm trying to learn scripting and I know a lot is trial and error, so..this is my little script that bans through either X or a channel mode ban..depending on if X is op'd in the channel. However..I know there should be a halt in there somewhere to stop the script if X is present and op'd but I can't seem to figure out where to put it. The script itself does work..but for some reason (perhaps lag between giving the command and X receiving it) it bans via the channel mode first and then if X is present, the X ban kicks in and replaces the channel mode ban almost immediately. Anyway..this is my working, yet very crude attempt..

on *:JOIN:#<channel>: {
if *sample.host* iswm $address {
/msg x ban $chan $nick 2400 100 Not Welcome here! | /ban $chan $nick | /kick $chan $nick Not Welcome Here!
}
}

I should mention that it's not necessary to check if X is op'd, mainly because if it isn't, the channel mode kicks in anyway. But where would I put the halt to stop the script if it does ban through X first?

Last edited by EasyObserver; 28/12/14 06:53 AM.