Mode Lock
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 3.0 (of 2 scores) |
| Date Added | Nov 17, 2008 |
| Last Updated | Nov 17, 2008 |
| Tags | lock mode |
Introduction
usage: type /mlock to activate/deactivate
you need ( @ & or ~ ) to change modes.
mIRC Snippet:
Mode Lock
Posted on Nov 17, 2008 3:44 pm
Posted on Nov 17, 2008 3:44 pm
Good idea to prevent other operators changing modes, depending on the version of services on the IRC server won't "/cs set #channelname mlock +modes" do the same thing ?
A few Pointers:
can be written as
note: no spaces.
also no need for a "/" before the commands you can just write
as
A few Pointers:
| Quote: |
| if ( %lock == $null ) |
| Quote: |
| if (!%lock) |
also no need for a "/" before the commands you can just write
| Quote: |
| /mode $chan $+(+,$remove($1,-)) |
| Quote: |
| mode $chan $+(+,$remove($1,-)) |
mIRC Snippet:
Mode Lock
Posted on Nov 17, 2008 3:53 pm
Posted on Nov 17, 2008 3:53 pm
Instead of using the %lock variable I'd just grab the status of the group.
mIRC Snippet:
Mode Lock
Posted on Feb 22, 2009 4:54 pm
Posted on Feb 22, 2009 4:54 pm
looks that.
two /mode is not necesary
and
two /mode is not necesary
| Code: |
;- /testt +i alias testt { if ( $nick != $me ) { if (-* iswm $1) || (+* iswm $1 ) { echo -a * /mode $chan $+($iif($v1 = -,+,-),$remove($1,-,+)) $2- } } } |
and
| Code: |
alias mlock { %lock = $iif(%lock = 0,1,0) $iif(%lock = 0,.disable,.enable) #lock | /echo -a Mlock $iif(%lock = 0,off. modes unlocked,on. modes lock) } |



