resync
Posted by DarkJFMan
Monday, July 25, 2005
Description: your own .resync script if you have your own userlist (seperate from ChanServ)
on *:JOIN:#yourchan: {
if ($ulevel > 200) {
write op.txt $nick
}
elseif ($ulevel == 100) {
write voice.txt $nick
}
}
on *:NICK: {
if ($ulevel > 200) {
write -ds $+ $nick op.txt
write $newnick op.txt
}
elseif ($ulevel == 100) {
write -ds $+ $nick voice.txt
write $newnick voice.txt
}
}
on *:PART:#yourchan: {
if ($ulevel > 200) {
write -ds $+ $nick op.txt
}
elseif ($ulevel == 100) {
write -ds $+ $nick voice.txt
}
}
on 200:TEXT:.resync:#yourchan: {
var %i = 1
while ($read(op.txt,%i)) {
mode $chan +o $ifmatch
inc %i
}
var %m = 1
while ($read(voice.txt,%m)) {
mode $chan +v $ifmatch
inc %m
}
}
on *:JOIN:#yourchan: {
if ($ulevel > 200) {
write op.txt $nick
}
elseif ($ulevel == 100) {
write voice.txt $nick
}
}
on *:NICK: {
if ($ulevel > 200) {
write -ds $+ $nick op.txt
write $newnick op.txt
}
elseif ($ulevel == 100) {
write -ds $+ $nick voice.txt
write $newnick voice.txt
}
}
on *:PART:#yourchan: {
if ($ulevel > 200) {
write -ds $+ $nick op.txt
}
elseif ($ulevel == 100) {
write -ds $+ $nick voice.txt
}
}
on 200:TEXT:.resync:#yourchan: {
var %i = 1
while ($read(op.txt,%i)) {
mode $chan +o $ifmatch
inc %i
}
var %m = 1
while ($read(voice.txt,%m)) {
mode $chan +v $ifmatch
inc %m
}
}