mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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
Joined: Mar 2005
Posts: 212
N
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.
Joined: Nov 2003
Posts: 2,327
T
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
Joined: Dec 2002
Posts: 3,547
S
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.

Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
why is it used above then?

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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

Link Copied to Clipboard