Project

General

Profile

Ial nick search

Added by Mr. BS over 4 years ago

Search for a nick in all channels at connected networks. It will return the result in editbox. Wildcard supported.

Demo

Script

alias ialsearch {
  scid -at1 ialdeep $1
  editbox -a %ialsearch_temp
  unset %ialsearch_temp
}

alias ialdeep {
  if ($ial($1).nick) set %ialsearch_temp $iif(%ialsearch_temp, $v1 $+ $crlf) $+ $ial($1).nick @ $network : $commonChannels($ial($1).nick)
}

alias commonChannels {
  var %i = 1
  while ($comchan($1,%i)) { var %xx %xx $comchan($1,%i)
    inc %i
  }
  return $iif(%xx,$sorttok(%xx,32), none)
}