for what you're trying to do, you should probably change it to this
on *:JOIN:#: {
if ($readini(Agold.ini,gold,$ial($nick,1).addr) != $null) {
if ($nick !isowner $chan) {
mode $chan +q $nick
}
else { mode $chan -qo $nick }
}
}
Edited Mar 9, 2005 10:29 AM by Nimbus03
"the important thing was, that i had an onion on my belt, which was the style at the time"
well for one, %jc isn't set so i would see how the code doesn't work. Try this instead. But by the way this coding was structured, i'm 100% sure this was taken out of a script which used this for a different purpose.
Well %jc is set when my script joins the channel, and %joinnick is set when anyone joins. but thanks ill try your version
and yes i wrote this based on a ban list i saw elsewhere
Edited Mar 24, 2005 2:50 PM by DalienX
on *:JOIN:#: {
if ($readini(Agold.ini,gold,$ial($nick,1).addr) != $null) && ($nick !isowner $chan) && ($me isowner $chan) mode $chan +q $nick
elseif ($readini(Abrown.ini,brown,$ial($nick,1).addr) != $null) && ($nick !isop $chan) && ($me isop $chan) mode $chan +o $nick
}
on *:oP:#: { if ($readini(Adeop.ini,deop,$ial($opnick,1).addr) != $null) && ($me isop $chan) { mode $chan -o $opnick } }
Edited Mar 25, 2005 2:27 PM by The Gate Keeper