IRCII Functions IRCII functions are substituted with the format $FUNCTION(arguments). A function is an ALIAS which assigns a value to FUNCTION_RETURN. For example: ALIAS DOUBLE assign FUNCTION_RETURN ${[$0]+[$0]} which is the same as: ALIAS DOUBLE @ function_return = [$0] * 2 used with: ALIAS SHOWDOUBLE echo $DOUBLE($0) will cause SHOWDOUBLE 7 to display "14". The following built-in functions already exist and cannot be overriden: LEFT(COUNT STRING) Returns the COUNT leftmost bytes from the STRING. RIGHT(COUNT STRING) Returns the COUNT rightmost bytes from the STRING. MID(INDEX COUNT STRING) Returns COUNT bytes starting at position INDEX in STRING. INDEX(CHARLIST STRING) Returns the index to the first character in STRING which appears in CHARLIST. RINDEX(CHARLIST STRING) Returns the index to the last character in STRING which appears in CHARLIST. TIME() Returns the current system time as a long integer STIME(TIMEVAL) Returns the date and time in English that corresponds to the long integer TIMEVAL. TDIFF(TIME_INTERVAL) Takes a TIME_INTERVAL in seconds and returns it in the format.. dd days hh hours mm minutes ss seconds Any fields with 00 are omitted. RAND(LIMIT) Returns a random number x such that 0<=x