mIRC Homepage

Joins/Parts/Quits

Posted By: gerdigos

Joins/Parts/Quits - 19/02/03 01:30 PM

I looked up in a DALnet raw list (although i am in IRCnet), but i couldn't find a raw that sends mIRC a users info when they join a chatroom.
What i want to do is change the Join/Part/Quit msgs in a channel. Does anyone have an idea how i can do that? Will on *:JOIN:.... work? Thanks ppl laugh
Posted By: MonoSex

Re: Joins/Parts/Quits - 19/02/03 03:00 PM

It's not a raw numeric then.
Just use on JOIN, on PART etc. and 'haltdef' the default output

You can use /debug @debug to see what server sends to you.

example:

Code:

on ^*:JOIN:#:{
  if ($nick != $me) {
    echo -t $chan $nick has joined $chan $+ !
    haltdef
  }
}


Posted By: gerdigos

Re: Joins/Parts/Quits - 19/02/03 09:22 PM

Thought so. Thanks for the /debug hint man, i didn't know it... btw: haltdef rulezz, i use it in all my raws! Thanks again wink
Posted By: Cheech

Re: Joins/Parts/Quits - 20/02/03 01:21 AM

dont forget to turn the /debug off the info adds up quite quick if you stay connected to your server for extended periods of time .
Posted By: gerdigos

Re: Joins/Parts/Quits - 20/02/03 01:25 PM

Tried you, and this doesn't work.
Code:
 on *:JOIN:*: { 
  if ($nick != $me) {         
    haltdef
    echo $chan  $+ $color(join) $+ $timestamp * -> Joins: $nick ( $+ $address $+ )
  }
} 
 

It just echoes the join 2 times (once the default and once mine)! Any ideas?! confused
Posted By: laz

Re: Joins/Parts/Quits - 20/02/03 02:47 PM

Try using halt instead of haltdef.
Posted By: MonoSex

Re: Joins/Parts/Quits - 20/02/03 03:50 PM

You forgot about ^ char in on JOIN.
This char is used when you want the script to trggier before default text is displayed.

Code:

on [color:red]^[/color]*:JOIN:*: {
  if ($nick != $me) {
    echo $color(join) -t $chan * -> Joins: $nick ( $+ $address $+ )
    haltdef
  }
} 



btw. /echo [color] -t has color and $timestamp included, so you don't have to put it yourself wink
Posted By: gerdigos

Re: Joins/Parts/Quits - 21/02/03 02:43 PM

laz, i tried both, but they didn't work frown

MonoSex, THANKS! It finally worked. I had seen that ^, but i didn't know what it meant. Thanks for the tip too smile
Forum rulezzz
Posted By: Hammer

Re: Joins/Parts/Quits - 22/02/03 12:21 AM

The ^ tells mIRC to process this event code before allowing the event to be handled normally. If you omit it, then your event fires after the default event has occured. That means that if you wish to replace the text of the event, you need your code to process before the default event.
© 2020 mIRC Discussion Forums