on *:LOGON:*:{
raw CAP REQ :twitch.tv/membership
}
on *:TEXT:*:#: {
if ($1 == !saywhat) {
if ($2 == $null) { msg $chan $read(Quotes.txt, n) }
ELSE {
var %i 1
while (%i <= $lines(Quotes.txt)) {
if ($2 isin $read(Quotes.txt, %i)) {
write tempfile.tmp $read(Quotes.txt, %i)
}
inc %i
}
msg $chan $read(tempfile.tmp)
.remove tempfile.tmp
}
}
%nicks = spyker_z_ex computerwiz160 missabirose
var %check = $istok(%nicks,$nick,32)
if ($1 == !addquote) {
if ($nick isop $chan) || (%check == $true) {
write Quotes.txt $+($2-)
msg $chan Quote Added : $+($2-)
}
}
}