mIRC Homepage
Posted By: LethPhaos on *:join*: Problem - 11/01/05 08:55 PM
------------------------------------------------------------------------
on *:join:*:{
if ( $nick == $me ) {
tokenize $char(,) $rconnstat
echo -tc topic $chan * $1
echo -tc topic $chan * $2
}
else {
echo 3 -t $chan * Joins: $nick ( $+ $address $+ ).4 $nick($chan,0) on $chan now.
haltdef

if ( $me isop $chan ) { mode $chan +v $nick }
}
}
------------------------------------------------------------------------
This is the code I'm talking about.
Well, I had this join script working, but it was spread trough different remote files.
I decided to clean up the files and nest some things together.
The problem is, now the custom on join message doesn't halt the standard one anymore :s
Could anyone help?
Thanks in advance!
Posted By: SladeKraven Re: on *:join*: Problem - 11/01/05 09:00 PM
Haltdef and carrot prefix.

Code:
on ^*:join:#: {
  if ( $nick == $me ) {
    tokenize $char(,) $rconnstat
    echo -tc topic $chan * $1
    echo -tc topic $chan * $2
  }
  else {
    echo 3 -t $chan * Joins: $nick ( $+ $address $+ ).4 $nick($chan,0) on $chan now.
    haltdef
    if ( $me isop $chan ) { mode $chan +v $nick }
  }
  haltdef
}
Posted By: LethPhaos Re: on *:join*: Problem - 11/01/05 09:05 PM
can the first haltdef be deleted?
what does the carrot do?
Posted By: SladeKraven Re: on *:join*: Problem - 11/01/05 09:09 PM
Yes, you can remove your haltdef.

From the help file.

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.
Posted By: LethPhaos Re: on *:join*: Problem - 12/01/05 08:36 PM
Thanks!
Posted By: SladeKraven Re: on *:join*: Problem - 13/01/05 04:27 AM
You're very welcome.
© mIRC Discussion Forums