mIRC Home    About    Download    Register    News    Help

Print Thread
#164141 08/11/06 05:56 AM
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
Hey all.

I've written a script which echo's everything said from one channel to another. However, I want to display EVERYTHING, ie - joins/quits/parts/bans/etc.

How would I modify this script to show it?

ON *:TEXT:*:#chan1:msg #chan2 8[14 $nick 8]0 :: $1-

I know its a matter of changing the *:TEXT:* bit, but I am not sure of the value's and format of it.

Thanks for the help guys

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Here's a list of sections for you to read in the help file
on join
on part
on quit
on kick
on action
on notice

Joined: Oct 2006
Posts: 342
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Code:
on ^*:join:#chan1:{ msg #chan2 $nick joins #chan1 }
on ^*:part:#chan1:{ msg #chan2 $nick parts #chan1 }
on ^*:quit:#chan1:{ msg #chan2 $nick quitted on #chan1 }
on ^*:ban:#chan1: { msg #chan2 $nick banned $banmask on #chan1 }
on ^*:action:*:#chan1:{ describe $nick $1- }
on ^*:text:*:#chan1:{ msg #chan2 $nick $1- }
on ^*:kick:#chan1:{ msg #chan2 $nick kicked $knick }
on ^*:notice:#chan1:*:{ msg #chan2 $nick noticed on #chan1 $1- }
 

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Only problem is the ON QUIT event...that event doesn't have a channel identifier

Joined: Oct 2006
Posts: 342
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on ^*:quit: {
if ($chan == #chan1) return
quit
}
alias quit {
msg #chan2 $2 $3 $4 Quits Irc $5- | return
}

Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
There are some many things wrong with that code
1. $chan doesn't return anything with the on quit event
2. you called your alias /quit?
3. your using return if the channel is #chan1?
4. whats the $2 $3 $4 meant to return when you just calling /quit?
Code:
on ^*:quit:if ($nick ison #chan1) msg #chan2 $nick left irc ( $+ $1- $+ )


Last edited by jizzy; 08/11/06 09:54 AM.

If only women came with popup menus and online help.
Joined: Oct 2006
Posts: 342
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
on ^*:quit: {
if ($chan == #chan1) return
quit
}
alias quit {
msg #chan2 $2 $3 $4 Quits Irc $5- | return
}

;---------
msg #chan2 $3 $4 Quits Irc $5- | return

like this
Nick Address Quits IRC $1-

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You don't want to call and alias /quit.


Invision Support
#Invision on irc.irchighway.net
Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
Uh, did you read my post at all?


If only women came with popup menus and online help.

Link Copied to Clipboard