home *** CD-ROM | disk | FTP | other *** search
- Advanced IRC scripting functions and routines - 1.31
- ****************************************************
-
- *** Note ***
- The variable "retval" is included in every stoppable trigger. If
- it is, within the script, set to true, further execution of that
- trigger within the program will be stopped after script execution.
-
- The above statement may sound confusing, so I'll tell you in another
- way. If you have an 'in_msg()' event, and you set the variable 'retval'
- to true within that function, the client will not display the message.
-
- The scripts are case insensitive.
-
-
- ==================
- Required functions
- ==================
-
- Open/close
- ----------
-
- airc_init(ScName,ScFunc) 'Name of script and function
-
- The function 'airc_init' may not contain functions defined within
- the script. Only the variables 'ScName' and 'ScFunc' must be set
- in this function.
-
-
- =============
- Optional subs
- =============
-
- Open/close
- ----------
-
- airc_close() 'OnClose, a trigger
-
- Commands
- --------
-
- aecho(s,[stdcolor],[drawbrand]) 'Echo to active window
- secho(s,[stdcolor],[drawbrand]) 'Echo to status window
- echo(s,where,[server],[stdcolor],[drawbrand]) 'Echo to specified window
- putignore(where,types) 'Set an ignore
- remignore(where,types) 'Remove an ignore
- putmsg(text,where) 'Send a privmsg
- putnotice(text,where) 'Send a notice
- putctcp(text,where) 'Send a ctcp
- putctcpreply(text,where) 'Send a ctcp reply
- putserver(text,[servernum]) 'Send raw text to server
- runcmd(text,[where]) 'Run an internal command
- say(text) 'Say something to active window
- closequery(nick) 'Close a query window
-
- Variables/functions
- -------------------
-
- fetchhost(nick,hostmode) 'Returns the hostmask for the given nick
- searchstr(s1,s2) 'Returns true if s2 is found in s1
- activeserver() 'The active server number
- factive() 'The active window
- curnick() 'Current nickname
- isaway() 'Returns TRUE if client is away
-
- Triggers/aliases
- ----------------
-
- in_join(retval,nick,chan) 'OnJoin
- in_part(retval,nick,chan) 'OnPart
- in_msg(retval,text,nick) 'Private msg
- in_chanmsg(retval,text,nick,chan) 'Channel msg
- connect(server,port,servernum) 'OnConnect
- disconnect(server,port,servernum) 'OnDisconnect
- raw(retval,rawnum,text,nick,chan) 'Raw
- autoaway(text) 'On auto-away trigger
- autoback() 'On auto-back or aborted away
- alias_*(retval,text) 'Aliases, where "*" is any word not including spaces or special characters