Section 6: Built-In Functions
This section will be a treasure trove for manyscript writers. Every single built-in function is described here; every helpfile shows exactly what each function takes in and what they spit out. Client State Information: curpos epic geom info lastserver mychannels myservers pid ppid servername userhost winnam winnum winserv winsize winvisible Server State Information: chanmode chanusers chops ischannel ischanop key nochops notify numonchannel onchannel usermode version Time Functions: stime strftime tdiff tdiff2 time utime Pattern Matching: common copattern diff filter match pattern rfilter rmatch rpattern Character Operations: ascii chr isalpha isdigit jot pass split strip stripansi tolower toupper String Operations: after before center decode encode index left mid repeat reverse right rindex sar strlen tr Word Operations: afterw beforew chngw fromw insertw leftw midw notw numwords remw restw revw rightw tow uniq word Variable Operations: pop push shift splice unshift Array Operations: delarray delitem finditem getarrays getitem getmatches getrmatches ifindfirst ifinditem igetitem indextoitem itemtoindex matchitem numarrays numitems rmatchitem setitem File Operations: chmod close eof fexist fsize glob mkdir open read rename rmdir twiddle umask unlink which write writeb Network Operations: connect convert iptoname listen nametoip Miscellaneous: aliasctl crypt rand srand trunc