on *:text:!del*:#corleone,#dracoz: {
%host = $address($2,2)
%invite = invite2.txt
%check = $read(%invite, w, %host)
if (%check != $null) && (*!*@ !isin $2) && ($nick isop $chan) && ($2 ison $chan) {
write -ds $+ %host invite2.txt
.msg $chan 4 $2 0Is nu verwijderd uit de gebruikerslijst!
}
if ($2 ison #members.corleone) {
.kick #hidden.gomorra $2 4Je toegang hier is 0verwijderd!
}
if (%check == $null) && (*!*@ isin $2) && ($nick isop $chan) {
.write -ds $+ $2 invite2.txt
.msg $chan 4 $2 0Is nu 9verwijderd 12 uit de gebruikerslijst!
}
elseif ($nick !isop $chan) {
.msg $chan 4Je bent 0geen 12@ Operator! :P
}
elseif (%check == $null) {
.msg $chan 4 $2 0Staat niet in de gebruikerslijst!
}
elseif ($2 !ison $chan) {
.msg $chan 4 $2 0Is niet op dit kanaal!
}
}
The meaning of this script is when someone types !del nickname
the nickname will be removed from the textfile.
But here's the bug, EVERYONE can type !del nickname and then the script will delete it..
I can't find the bug, and it must be so that only @ can use the !del command... Plz help ^^