mIRC Home    About    Download    Register    News    Help

Print Thread
kick ban script question (ban -k) #113981 10/03/05 10:47 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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


Those who fail history are doomed to repeat it
Re: kick ban script question (ban -k) #113982 10/03/05 10:57 PM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
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

Last edited by NeUtRoN_StaR; 10/03/05 10:58 PM.
Re: kick ban script question (ban -k) #113983 10/03/05 10:58 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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! }
}


New username: hixxy
Re: kick ban script question (ban -k) #113984 10/03/05 11:02 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/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.

Re: kick ban script question (ban -k) #113985 10/03/05 11:12 PM
Joined: Mar 2005
Posts: 212
N
NeUtRoN_StaR Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
why is it used above then?

Re: kick ban script question (ban -k) #113986 10/03/05 11:21 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
He mentioned it's part of a bigger script so maybe he has a use for ^ but hasn't posted the irrelevant code.


New username: hixxy
Re: kick ban script question (ban -k) #113987 11/03/05 02:10 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline OP
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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


Those who fail history are doomed to repeat it