mIRC Home    About    Download    Register    News    Help

Print Thread
Joins/Parts/Quits #12000 19/02/03 01:30 PM
Joined: Feb 2003
Posts: 76
G
gerdigos Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
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

Re: Joins/Parts/Quits #12001 19/02/03 03:00 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
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
  }
}



Re: Joins/Parts/Quits #12002 19/02/03 09:22 PM
Joined: Feb 2003
Posts: 76
G
gerdigos Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
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

Re: Joins/Parts/Quits #12003 20/02/03 01:21 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
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 .

Re: Joins/Parts/Quits #12004 20/02/03 01:25 PM
Joined: Feb 2003
Posts: 76
G
gerdigos Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
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

Re: Joins/Parts/Quits #12005 20/02/03 02:47 PM
Joined: Dec 2002
Posts: 54
L
laz Offline
Babel fish
Offline
Babel fish
L
Joined: Dec 2002
Posts: 54
Try using halt instead of haltdef.

Re: Joins/Parts/Quits #12006 20/02/03 03:50 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
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

Last edited by MonoSex; 20/02/03 03:54 PM.
Re: Joins/Parts/Quits #12007 21/02/03 02:43 PM
Joined: Feb 2003
Posts: 76
G
gerdigos Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
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

Re: Joins/Parts/Quits #12008 22/02/03 12:21 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C