napa182 commented on a Page, Basic ChanInfo  -  Oct 19, 2008

you can do the same thing with $iif so instead of having that elseif just do

alias ChanInfo {
  echo -ta ----------
  echo -ta Channel Info for $iif(!$1,$chan,$1) at $asctime(hh:nn:ss tt) on $network $+ / $+ $server
  echo -ta Current Modes: $chan($iif(!$1,$chan,$1)).mode - Current  Topic: $chan($iif(!$1,$chan,$1)).topic
  echo -ta Total Users: $nick($iif(!$1,$chan,$1),0) - (&) Admins: $nick($iif(!$1,$chan,$1),0,a,ohvr) - (@) Ops: $nick($iif(!$1,$chan,$1),0,o) - (%) HalfOps: $nick($iif(!$1,$chan,$1),0,h) - (+) Voices: $nick($iif(!$1,$chan,$1),0,v) - Regulars: $nick($iif(!$1,$chan,$1),0,r)
  echo -tsa ----------
}
 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.