mIRC Homepage
Posted By: landonsandor kick ban script question (ban -k) - 10/03/05 10:47 PM
Ok, I have this script (taken from a larger one):

Code:
on ^@*:text:*:#: {
  if (# == #channel) {
     if ((word isin $1-) || (word isin $1-)) { ban -ku3600 # $nick 2 Lack of manners detected! }
  }
}


and when it fires, I see a kick and ban happen BUT I also see this in my status screen (sometimes more than once):

05:39.49 PM Nickname They aren't on #channel
05:39.49 PM Nickname They aren't on #channel

Why would that be pulling up like that (there is no duplicate event name either - only one of each event type)? I also have had other issues using bad channel filters and using the ban -k switch and it did the same thing, but if I change them both to the ban | kick method, I get no errors. I use the normal commands, not a realiased ban or kick command, using:

mirc 6.16 (scripted on by me only)
win2k pro (fully updated)
dalnet

Any help would be appreciated
Posted By: NeUtRoN_StaR Re: kick ban script question (ban -k) - 10/03/05 10:57 PM
Code:
on ^@*:text:*:[color:red]#channel[/color]: {
       if (word isin $1-) { ban -ku3600 $chan $nick 2 Lack of manners detected! 
}
}

i couldn't find the ^ prefix in help so i dont know what it does
Posted By: tidy_trax Re: kick ban script question (ban -k) - 10/03/05 10:58 PM
I don't know what the problem is but it wouldn't hurt to try using !ban.

Code:
on @^*:text:*:#channel:{
  if ($istok(word1 word2,$1-,32)) { !ban -ku3600 $chan $nick 2 Lack of manners detected! }
}
Posted By: SladeKraven Re: kick ban script question (ban -k) - 10/03/05 11:02 PM
/help Halting default text
/help /haltdef

The ^ event prefix

You can prevent the default text for an event from being shown by using the ^ prefix in an event definition. This allows you to show your own custom event messages.

All the best,

Andy.
Posted By: NeUtRoN_StaR Re: kick ban script question (ban -k) - 10/03/05 11:12 PM
why is it used above then?
Posted By: tidy_trax Re: kick ban script question (ban -k) - 10/03/05 11:21 PM
He mentioned it's part of a bigger script so maybe he has a use for ^ but hasn't posted the irrelevant code.
Posted By: landonsandor Re: kick ban script question (ban -k) - 11/03/05 02:10 AM
exactly. I was having issues with an ops notice not being displayed properly so Im halting thedefault text and outputting my own to try to keep it uniform with the normal output of the onotice etc commands. Also, the !ban is a thought. I'll give that a shot and report back with more info smile
© mIRC Discussion Forums