X-Fusion
Historical / Guest
on *:JOIN:#:{
if ($nick != $me)
if ($nick isin $read(document.txt)) {
mode # +v $nick
}
}
When reading from a text file you need to use a special code to do that with. I've noticed that simply having...
if ($nick isin $read(sometext.txt))...
or
if (* $+ $nick $+ * iswm $read(sometext.txt))
won't work most of the time. So, try this code...
on *:JOIN:#: {
if ($read(File.txt,w,* $+ $nick $+ *)) mode $chan +v $nick
else {
mode $chan +b $ial($nick).addr 5
kick $chan $nick Sorry $nick $+ , but you aren't on my list.
}
}
Edited Jul 15, 2007 1:02 PM by Warrior124
Travis
Historical / Guest
%allowednicks = nick1,nick2,nick3,nick4,nick5
if ($istok(%allowednicks,$nick,44)) mode $chan +v $nick
hadd -m team $nick $chan
if ($hget(team,$nick)) mode $chan +v $nick
I prefer these methods.