Here is a script that clears your justin.tv chat room.
on *:TEXT:!clear:#:{
if ($nick isop $chan ) {
msg $chan /clear
msg $chan $nick Has Cleared the chatroom!
else { .notice $nick you must be a mod to use this command } halt
}
Let's not get too meticulous to compare the semblance to yours and xbox_gamer1's. The overall concept and its context share 95% of the likeness. You should come up with something that sets yours apart from xbox_gamer1's. This is getting old trying to come up with an excuse for saying I "own" this and that...
His :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;Chat clear;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;; by xbox_gamer1;;;;;
on *:TEXT:!chatclear:#:{
msg $chan /clear
msg $chan $nick has cleared the chat room!
}
Chat Clear
MODS ONLY!!
on *:TEXT:!chatclear:#:{
if ($nick isop #) {
msg $chan /clear
msg $chan $nick Has Cleared the chatroom!
else { .notice $nick you not authorized to use this command } halt
}
Mine: on *:TEXT:!clear:#:{
msg $chan /clear
msg $chan Chat has been cleared by $nick
}
on *:TEXT:!clear:#:{
if ($nick isop $chan ) {
msg $chan /clear
msg $chan Chat has been cleared by $nick !
else { .notice $nick you must be a mod to use this command } halt
}
see the difference?
Technically speaking this is a duplicate of xboxgamer's original, the only 2% you have tweaked are:
Chat has been cleared by $nick
$nick you must be a mod to use this commandcompared to the original:> $nick Has Cleared the chatroom!
$nick you not authorized to use this commandPerhaps ripping is too strong of a word for you; I'd say this is another copycat.
Napa182, because, truthfully, everybody can...until Scott, the site admin, feels like removing it by way of seeing it or being reported by someone else. :P One of the submission rules states that at least 50% of the code must be written by you. Even so, many people still submit snippets that are either a duplicate or not written by him or her.
Your code has bracket misplaced and halt used unnecessarily. This is the edit:
on *:TEXT:!chatclear:#:{
if ($nick isop #) {
tokenize 44 /clear, $+ $nick has cleared the chatroom!
msg # $*
}
else {
.notice $nick you not authorized to use this command
}
}
You can tokenize it so you only need one msg command.