hi guys, this is my code below, its intended for when the group is enabled, and another user set a mode in the channel, it will unset it... ie.
[21:28:00] * BrAun sets mode: -C <--- another user
[21:28:00] * Skeletor sets mode: +C <--- Me
[21:28:01] <Skeletor> please dont change the channel modes
#modelock on
on *:mode:* {
;if ($nick == $me) { return }
if (+ isin $1-) { mode # - $+ $remove($1-,+) | halt }
elseif (- isin $1-) { mode # + $+ $remove($1-,-) | halt }
say Please dont change the channel modes
}
#modelock end
But what happens is...
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
[21:28:02] * Skeletor sets mode: -C
[21:28:02] * Skeletor sets mode: +C
And it keeps doing that until, it disable the group
Any Ideas?