WorldDMT commented on a Page, Channel Linker  -  Apr 25, 2010

about %chan1,%chan2 edited
but about> And shouldn't this line:
[quote]$iif(# = %chan1,%chan2,%chan1)

Be this:

$iif(# = %chan1,%chan2,$iif(%chan2,%chan1))

[/quote]

the event is only for %chan1 and %chan2 so
if # = %chan1 else # = %chan2

about > $iif((%connection = on) && (# = %chan1,%chan2,%chan1),msg [ $+ $nick $+ ]: $1-))

the syntax is $iif(C,T,F)
C = condition
T = true
F = false
so look at that condition (# = %chan1,%chan2,%chan1) that will never work

so about my last post

on *:text:*:%chan1,%chan2:{
; if the event it's on %chan1 or %chan2
  if (connection == on) {
  ; check if the #chan is %chan1 or not by $iif
   msg $iif(# = %chan1,%chan2,%chan1) [ $+ $nick $+ ]: $1-
   ; so if # = %chan1 that will be
   ; msg %chan2 [Jethro_]: $1-
   ; else that will be
   ; msg %chan1 [Jethro_]: $1-
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.