mIRC Home    About    Download    Register    News    Help

Print Thread
#109885 02/02/05 06:23 PM
Joined: Jan 2005
Posts: 18
H
Ho0tz04 Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Jan 2005
Posts: 18
When someone ctcps a channel, i want it to echo <$timestamp> <$chan><$nick><$1> ...

and then when someone only ctcp's me <$timestamp><$nick><$1>

I've tried many things and just can't get it to work. mad

Any help would greatly be appreciated.

Thanks,

Ho0tz aka arkt1k

#109886 02/02/05 06:24 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
/help ctcp events
you can tell it to trigger for channel only, or use :*: with if then else
/help if then else

#109887 02/02/05 06:27 PM
Joined: Oct 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
You don't want to enable timestamping ?

Options (alt+o) > IRC > Messages

#109888 02/02/05 06:29 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
ctcp [color:blue]*[/color]:*:?:{
  echo $color(ct) -sbflirt $nick $1-
  haltdef
}
ctcp [color:blue]*[/color]:*:#:{
  echo $color(ct) -bflirt $chan $chan $nick $1-
  haltdef
}


If the original ctcp messages aren't hidden, change * to ^*.


New username: hixxy
#109889 02/02/05 06:32 PM
Joined: Jan 2005
Posts: 18
H
Ho0tz04 Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Jan 2005
Posts: 18
I meant as in this, i can't get it to distinguish between and channel ctcp and when I get ctcp'd.


ctcp *:*: {
if ($nick == $chan) {
echo -a 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $chan $+ [15 $+ $lower($1) $+ 11][15from11:15 $+ $nick $+ 11]
.halt
else {
echo -a 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $lower($1) $+ 11][15from11:15 $+ $nick $+ 11]
.halt

#109890 02/02/05 06:41 PM
Joined: Jan 2005
Posts: 75
Z
Babel fish
Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
lol i'm on the same thing as him, this is what i have, now the channel echos correctly, i just want to show my nick if it's a direct ctcp to me

Code:
alias _ctcp {  
return 04,15 $+ $str($chr(160),3) $+ ctcp $+  $+ $str($chr(160),2) $xnickflood($upper($3)) 09:10 to $iif($chan,$+([,#,])) 10from 14[04 $+ $nick $+ 14/6 $+ $replace($address,@,04@06,.,04.06,-,04-06) $+ 14]
}


the channel ones comes out like..
Code:
    ctcp   PING : to [#root] from [arkt1k/~arkt1k@vqhyvwrmpurg] 


if a ctcp is sent to me it should replace the channel name to my nick but it doesn't

#109891 02/02/05 07:05 PM
Joined: Oct 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
how about
Code:
ctcp ^*:*:*: {
  if ($target ischan) echo $target 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $target $+ [15 $+ $lower($1) $+ 11][15from11:15 $+ $nick $+ 11]
  else echo -a 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $lower($1) $+ 11][15from11:15 $+ $nick $+ 11]
  haltdef
}

Last edited by JoeDaddy; 02/02/05 07:32 PM.
#109892 02/02/05 07:14 PM
Joined: Jan 2005
Posts: 18
H
Ho0tz04 Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Jan 2005
Posts: 18
This is what i got, and now it works. Thanks to everyone that helped laugh


ctcp ^*:*:#: {
echo $chan 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $chan $+ 11[15 $+ $lower($1-) $+ 11][15from11:15 $+ $nick $+ 11]
.halt
}

ctcp ^*:*:?:{
echo -a 11[ $+ 15 $+ $timestamp $+ 11][15ctcp11[15 $+ $lower($1-) $+ 11][15from11:15 $+ $nick $+ 11]
.halt
}


Link Copied to Clipboard