Extended Aliases
These aliases allows you to direct add/modify/delete an entry from the scripts , or the address book . These commands are a little complicated ,but they are powerful tools for scripting
/_alias enables you to add/edit/remove a script from the aliases .
aliasname , is the name of the alias you would like to add/modify/remove , including the / preffix.
popupmask , is the mask which describes the popup action of the alias . Values are
for example , to set an alias to be both query + server popup , you use 5 ( 1 + 4 )
Use 0 to prevent an alias to be a popup
key , is the shortcut char to be copied in the shortcut alias entry . Use 0 ( zero) for no shortcut
The rest of the parameters of the /_alias , are describing the script lines , divided by three |'s . Use no script to indicate that the alias should be deleted . Use an asterisk "*" to leave the existing script in place . To clear the script without deleting the alias , use blank lines , for example /_alias aliasname 3 0 ||| ||| ||| ... etc . When one or more of your virtual lines start with ? , TurboIRC will read the relative file . Example
/_alias /hey 0 0 /mme #channel hey there|||?c:\sc.txt|||/mme #channel end file
this will create a script that starts with the first /mme command , then comes the file sc.txt and then the last command .
See Aliases for details .
Examples
Add or modify an alias with name /testalias , to be query popup , with no shortcut and with the script /me hey there ! and /me are you ok today ?
/_alias /testalias 3 0 /me hey there !|||/me are you ok today ?
to delete this alias we created / modified :
/_alias /testalias 3 0
to change this alias only the popup mask , and leave the script in place
/_alias /testalias 3 0 *
Warning : You cannot use $ variables within /_alias , /_event , /_spevent or /_alarm , if you call /_x from another script , because these variables will be replaced before the /_alias is executed . If you use e.g. this line within a script : /_alias /testalias 3 0 /mode $channel +nt , the /testalias will not have /mode $channel +nt as a script , it will have replaced the $channel with the channel you were on when you called the original alias .
eventname , is the name of the event
functionmask , is the combination of options that the event should have :
e.g. use 9 for an enabled multi handler event
enableattrmask , is the combination of the event levels that should be ON
disableattrmask , is the same combination of the event levels that should be OFF
If a level is neither in the enableattrmask , nor in the disableattrmask , it will be set to DON'TCARE
See Events for details .
The rest are the lines describing the scripts , divided by 3 |'s . Each logical line that has the + sign in front of , goes to the "Trigger Masks" . Each logical line that has the - sign in front of , goes to the "Refuse Masks". Use blank script to indicate that an event should be deleted .Use an asterisk "*" to leave the existing script in place . You can also take the script from a file , check the /_alias description .
Example
/_event testevent 1 0 0 +:*!*@* JOIN*|||-:W*!*@* JOIN*|||/notice $nick hey !
This creates/updates an event "testevent" , sets the "enabled" flag , sets all the levels to DON'T CARE , adds the *!*@* JOIN* to the trigger masks , adds the :W*!*@* JOIN* to the refuse masks and the rest is the script .
The syntax of /_alarm is relative to /_alias , except for the few more number parameters that give the day,month,year,hour,min and second . To delete an alarm , include no script . Use an asterisk "*" to leave the existing script in place . You can also load a script from a file , as described in /_alias .
See Alarms for details
The syntax of /_spevent is the same with the /_alias , except that the /_spevent can only modify special events . Using the /_spevent with a speventname that does not exist does nothing . Using blank script makes /_spevent to clear the script from the special event , but not delete the event itself . You can also take the script from a file , check the /_alias description .
See Special Events for details .
To remove an entry from the address book , use /_ab user
/_ab cannot add multiple line information to the address book .
/_set allows you to dynamically modify a TurboIRC option . The options that can be modified are listed in the Preferences and other configuration dialogs . With /_set , you can change an option temporarily . This change will remain until you restart TurboIRC , or you reload the options with /reloadoptions . No changes are written to PREF.INI
Available options are :
See Preferences
The following parameters of /_set can change the Appearance Formatting :
All can take 0 or 1 as a value ( disabled / enabled ) . See Appearance Formatting .
The following parameters of /_set can change the Metrics :
1-6 take a description string , and 7,8 take 0 or 1 ( disable/enable ) . See Metrics .
The following parameters of /_set can change other options :
See MoreOptions .
See also :