blitzz commented on a Page, !Join and !Leave script  -  Nov 24, 2009
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 }.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.