! $eterna: functions,v 1.6 2002/08/29 10:25:03 mrg Exp $ ! ! Copyright (c) 1990-2002 Michael Sandrof, Troy Rollo, Matthew Green, ! and other ircII contributors. ! ! All rights reserved. See the HELP IRCII COPYRIGHT file for more ! information. ! Usage: LOAD functions Some useful and/or interesting functions. Additionnal commands and functions available: $reverse( ) reverse the whole line, right justify $format( ) format text in a column right justified $lformat( ) format text in a column left justified $center( ) center text sin space wide $sandr( ) search for, and replace stuff in text This one is a programming exercise Don't rely on it. $notword( ) Remove the word # from the list. starts at 1 show Show all items in the array and subarrays push push words onto list with listname e.g. push name Bill Jane Jim $push( ) Same as 'push' but it returns 0 or 1 for success or failure pop listname pop first item off top of list listname $pop(listname) like pop but returns that item $pluck(listname word) pluck the word from the list listname and return the new list $sort() Sorts the given list of words case insensitive (Daemon 93)