mIRC Homepage
Posted By: state user prot - 20/10/04 11:52 PM
we have are on server, witch basicly about 30 of us talk on, and alot of the times r mates change there name to try n fool us, i want it so that if a nick comes in that i have tagged, it will echo nick is normally bla

i have

alias mate { auser mate $address($1,6) $1 }

on mate:join:#squatjuice:{
var %n = $$ulist($address($nick,6),mate,1).info
if %n != $nick { echo #squatjuice $nick was previously %n }
}
then in popups

Tag Prot
.Add:/mate $$1

but it aint working
Posted By: TravisK Re: user prot - 21/10/04 11:04 AM
you have 2 $'s infront of ulist whne im pretty sure you just want one, if that dont fix it witch im pretty sure it wont right off... you prolly just need to delay the var par that gets $address cause its trying to get $address from the ial b4 its aviable OR what i would do is just use $mask($fulladdress,<N>) instead, it does a /userhost i belive

hope this fixes it, i didnt really look at the code that closely to see if it would really work i just, noticed 2 main things that were wrong with it
Posted By: Relinsquish Re: user prot - 21/10/04 11:48 AM
Code:
alias mate { guser mate $$1 2 $$1 }
on mate:join:#squatjuice:{
If ($UList($WildSite,mate,1).info != $Nick) { echo # $Nick was previously $IfMatch }
}
menu nicklist {
-
Tag Prot
.Add:/mate $$1
-
}
Posted By: Relinsquish Re: user prot - 21/10/04 11:50 AM
Having 2 $'s does not matter. If you put one, it'll continue the script even if that identifier does not exist. Putting 2 $'s will stop the command if the identifier does not exist.
© mIRC Discussion Forums