mIRC Home    About    Download    Register    News    Help

Print Thread
#107598 11/01/05 08:55 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
------------------------------------------------------------------------
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!

#107599 11/01/05 09:00 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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
}

#107600 11/01/05 09:05 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
can the first haltdef be deleted?
what does the carrot do?

#107601 11/01/05 09:09 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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.

Last edited by SladeKraven; 11/01/05 09:10 PM.
#107602 12/01/05 08:36 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanks!

#107603 13/01/05 04:27 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're very welcome.


Link Copied to Clipboard