Fuzionx commented on a Page, clear chat  -  Jan 10, 2012

@Abcdefmonkey: It seems that /clear actually clears the chatspace for everyone on certain servers..

The brackters are still missplaced and / $+ clear can just be done as /clear.
Try this:

on *:TEXT:c:#: {
  if ($me isop # && $nick isop #) {
    .timererase 1 1 msg # /clear
    .timererase 1 2 msg # $nick $+ , has Erased the chatroom.
  }
  else {
    .notice $nick Either me or you have no permission to clear the chatspace in #
  }
}
 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.