SReject commented on a Page, Wildcard Nick List  -  Oct 26, 2013

Why loop?

alias nickSearch {
  if ($isid && $me ison $1 && $3 isnum 1-) {
    unset %::nickSearch
    set -u0 %::nickSearchDelimiter $chr($3)
    filter -lk $1 _nicksearch $2
    if ($4) return $sorttok(%::nickSearch, $3)
    return %::nickSearch
  }
}
alias -l _nickSearch  set -u0 %::nickSearch $addtok(%::nickSearch, $1, %::nickSearchDelimiter)

(updated for a bit more speed; but at the cost of characters)

Yawhatnever  -  Dec 16, 2013

/filter includes the prefix

Sign in to comment

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.