Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision |
Your text |
Line 81: |
Line 81: |
| | | |
| === Other INI file manipulations === | | === Other INI file manipulations === |
− |
| |
− | Here is some code written by Sophist for the [https://github.com/DukeLupus/dlFilter dlFilter mIRC script] to provide some identifiers for mIRC options stored in the ini file for which there are no standard identifiers. These examples are those that were needed for dlFilter; there are many more to be discovered.
| |
− |
| |
− | <syntaxhighlight lang="mirc">; Get mIRC options not available through a standard identifier
| |
− | alias prefixown return $mIRCopt(options,0,23)
| |
− | alias showmodeprefix return $mIRCopt(options,2,30)
| |
− | alias enablenickcolors return $mIRCopt(options,0,32)
| |
− | alias shortjoinsparts return $mIRCopt(options,2,19)
| |
− | alias windowbuffer return $mIRCopt(options,3,1)
| |
− | alias usesinglemsg return $mIRCopt(options,0,22)
| |
− | alias sendPlingNickAsPrivate return $mIRCopt(options,1,23)
| |
− | alias dccIfFileExists {
| |
− | var %value = $mIRCopt(options,3,27)
| |
− | if (%value == 0) return Ask
| |
− | if (%value == 1) return Resume
| |
− | if (%value == 2) return Overwrite
| |
− | if (%value == 3) return Cancel
| |
− | return Unknown
| |
− | }
| |
− |
| |
− | alias -l mIRCopt {
| |
− | var %item $2
| |
− | if ($2 isnum) %item = n $+ $2
| |
− | var %ini $readini($mircini,n,$1,%item)
| |
− | if ($3 == $null) return %ini
| |
− | return $gettok(%ini,$3,$asc($comma))
| |
− | }</syntaxhighlight>
| |
| | | |
| [[Category:mIRC|ini files]] | | [[Category:mIRC|ini files]] |