Jump to content

Ircx Timers


RiverRat

Recommended Posts

Guest Travis

If channels on your network use the %# syntax you may need to remove the % or $chr(37) and replace it in different instances.

 

I remember this issue on MSN. Those who used pre-built connections like Vincula or NuclearMSN may not have noticed since the connections took care of the issue for you.

Link to comment
Share on other sites

timers dont work with $chan

cause you could be in more than one chan and it wouldnt know which one to send the message to

 

you could use /amsg in a timer i think

or set the $chan as a variable and then use that to message the room

Link to comment
Share on other sites

timers dont work with $chan

cause you could be in more than one chan and it wouldnt know which one to send the message to

 

you could use /amsg in a timer i think

or set the $chan as a variable and then use that to message the room

 

$chan would be evaluated when the timer command is used, not when the timer fires, so it would from any event/location that $chan exists in.

 

However, your variable idea would be the best way to do this. Something like this would work well:

 

on *:join:#:{ 
  set %chan $chan
  .timerblah 1 5 dowhatever 
}
alias dowhatever { 
  msg %chan hello 
  unset %chan
}

Link to comment
Share on other sites

Guest Travis

Ive used aliases fine with timers.

 

.timer $+ $chan 1 42 doit $nick $chan

 

alias doit {

if ($1 ison $2) kick $2 $1 you have been pwned by $me

}

Link to comment
Share on other sites

Ive used aliases fine with timers.

 

.timer $+ $chan 1 42 doit $nick $chan

 

alias doit {

if ($1 ison $2) kick $2 $1 you have been pwned by $me

}

 

That's fine, but he said the channels start with a %. Timers evaluate things twice so mIRC will interpret %#channel as a variable. To avoid that you can use the code provided by me or Psycho.

 

Psycho's method is shorter but I find it more kludgy. It's much harder to read.

Link to comment
Share on other sites

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