Jump to content

CTCP


egyptian

Recommended Posts

Here is what I have...

 

ctcp *:*:*: {
  if (TIME == $strip($1)) {
    msg $comchan($nick,1) My Time is... Hmm! Sorry, $nick $+ . Check back sometime soon. :D
    haltdef
  }
}

 

You might want something like this...

 

ctcp *:*:*: {
  if (TIME == $strip($1)) {
    access $comchan($nick,1) add deny $ial($nick).addr 5
    kick $comchan($nick,1) $nick [Don't Check My Time!!]
    haltdef
  }
}

 

P.S.: The reason to use the $strip command is because some people uses color codes in their text, and needs to be stripped to use the commands properly.

Edited by Warrior124
Link to comment
Share on other sites

thanks alot for that i was using it in vincula like this

 

ctcp *:TIME:*: {
  if ($sock(msn.*. $+ $cid,0) >= 2) {
  echo $color(ctcp) -a Time Request by $nick
  .ctcpreply $nick TIME $date $+ , $time
  haltdef 
  }
}

 

 

so its here the same or it will do the local time just once not twice then halt right ?

Edited by egyptian
Link to comment
Share on other sites

thanks alot for that i was using it in vincula like this

 

ctcp *:TIME:*: {
  if ($sock(msn.*. $+ $cid,0) >= 2) {
  echo $color(ctcp) -a Time Request by $nick
  .ctcpreply $nick TIME $date $+ , $time
  haltdef 
  }
}

so its here the same or it will do the local time just once not twice then halt right ?

Actually, the haltdef should stop it from sending the time to the person requesting it. :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...