on *:TEXT:!op*:#: {
if ($nick isop $chan) (
mode $chan +o $2
}
on *:TEXT:!deop*:#: {
if ($nick isop $chan) (
mode $chan -o $2
}
Should be
on @*:TEXT:!op*:#: {
if ($nick isop $chan) {
mode $chan +o $2
}
}
on @*:TEXT:!deop*:#: {
if ($nick isop $chan) {
mode $chan -o $2
}
}
You need to check if you are channel operator.
Ghost-Writer, i don't think by removing the {} can make it better. As Neptune stated, it makes the code more easier to read. Expert coder also use it. You make it more ugly. I think you know why the Author of mIRC create { and }.