mIRC Homepage
Posted By: SoBeGreen Halting Default Text and another question - 25/03/03 10:07 PM
Alright I've been able to do this before and its been awhile since I got my hands inside some scripting. So while my questions may seem stupid bare with me and maybe I'll be able to help you some day.

I'm wanting to do as the topic says. I want to halt the default text when I type something to say make my color always a different color (and various other things). In the example I've made my color red. And it works only the input isn't halting its giving both my red line of text and my default "normal" color text.

on 1:INPUT:#:/msg $chan 4 $1- | halt

I've also tried replacing halt with haltdef and I got the same result.

For the other question I've managed to halt the default join message and show the user joining the channel. But I want to also display their host mask too. So any help here is also appreciated.

Also I have a small bot that people flood sometimes. I'm wanting to cause a ontext event to stop responding to that user after he uses the command say three times. And if possible I just want to see an example of how I could make it kick the user instead of just ignoring them.
Posted By: LO_KEY Re: Halting Default Text and another question - 25/03/03 11:09 PM
on 1:INPUT:#:/msg $chan 4 $1- | haltdef

works perfectly fine

take this line, and paste it at the very top of ur first remote file...

ive found the placement in code, pending on what else u have coded, can help.

If this does fix it, usually it means u have another on input remote sumwhere and it halts the text b4 it gets to ur remote.

good luck. smile

as for ur other question,

paste the code here, and maybe i can help furthor. smile
Posted By: GBX Re: Halting Default Text and another question - 26/03/03 01:44 AM
on ^1:INPUT:#:/msg $chan 4 $1- | haltdef
very annoying little character wink
do u need the ^ when u haltdef as opposed to halt??
Posted By: Cheech Re: Halting Default Text and another question - 26/03/03 02:06 AM
i just use halt in mine ? and i dont have a problem ?
on 1:INPUT:*: { /say 08,01 $+ $1- | halt }
maybe the 6.03 has it worked that way where u dont need the ^ in the prefix of the event to mark it as a halt the regualr output ...... i always thought it had to be there to work since in the help file thats how it says its needed ... oh well i guess ya learn new things everyday
on 1:INPUT:#:/msg $chan 4 $1- | haltdef

works perfectly fine


...except that it will also send the commands you type to the channel.

Code:
ON *:INPUT:#: {
  if (/* !iswm $1) {
    msg # $1-
    haltdef
  }
}
© mIRC Discussion Forums