NIGathan commented on a Page, aol.mrc  -  Apr 14, 2009

You think this script isnt horrible, Panix?

Well since no one else has, Ill go ahead and explain the problems with it..

alias /_aol {
  set %temp $read($script,n,$r(4,222))
  inc %_aol.count 
  return $remove(%temp,$chr(34))
}

Your using a var where no var is needed, and youve set said var. so now it will stay set globablly, should always use var where available but you dont even need a var here...

Your removing $chr(34). Should simply put it inside of $noqt()

You also arent checking if the script is saved as an .ini. Always remember .ini's include the line number before every line..

That prefixed '/' is also unnecessary, never have I seen an alias with that there before..

This is how that alias should look:

alias _aol {
  inc %_aol.count
  return $noqt($iif(*.ini iswm $script,$gettok($read($script,n,$r(4,222)),2,61),$read($script,n,$r(4,222))))
}

You can even change it up some more:

alias aol $+($iif(!$show,.),msg) $chan $_aol
on *:TEXT:!aolsay:#:aol

Now its slightly better, but this was so far into the ground, nothing can surface it.

 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.