I would like to thanks napa182 for helping me with this script :)
Simple -m and +m script
[21:09] <@napa182> +m
[21:09] * Masonic sets mode: +m
[21:09] <@napa182> -m
[21:09] * Masonic sets mode: -m
on $@*:TEXT:/^([+-]m)$/S:#: {
if (!%flood && $nick(#,$nick,oh)) { inc -u5 %flood
mode # $regml(1)
}
}
on *:load:{
echo 12 -a Thank you for using this snippet.
echo 04 -a Have fun...
}
Cheiron if you go the route of using an on input maybe have away to turn it off n on maybe something like this..
#modem off
on *:input:#:if ($regex($1,/^([+-]m)$/S)) .timermode 1 1 mode # $regml(1)
#modem end
menu channel {
-
.Turn $iif($group(#modem) = on,Off,On) +/- m:{
$+(.,$iif($group(#modem) = on,dis,en),able) #modem
echo -a +/- m is now $group(#modem)
}
-
}
you can also do an alias based save using a bot...
on your mirc on a clean remote
on *:input:#: {
if ($$1 === +m) { .timer 1 1 mode $active +m }
if ($$1 === -m) { .timer 1 1 mode $active -m }
}
command simply be typing on your mirc +m or -m
and ensuring you have ops on said channel
otherwise neat code and does what it says.