mIRC Homepage
Posted By: HaleyJ User levels - 31/07/06 06:07 PM
Hi
I have this script on a bot..

on !@20:DEOP:#: {
if ($nick != chanservj) {
mode $chan -o $nick
mode $chan +o $opnick
}
}

Problem is it only works wheni put my name in the user levels not my address, I.E 20:haleyj works 20:haleyj!x@7F1218EF.5C574CBF.EDE58DD6.IP dosent work
but if i put my user address in another script something like..

ON owner:TEXT*:#: {
if ($1 == op) mode $chan +o $2
}

if i put owner:haleyj!x@7F1218EF.5C574CBF.EDE58DD6.IP in the user levels then that script does work and it does recognise my address? Can anyone explain??
Posted By: Crinul Re: User levels - 31/07/06 09:56 PM
ON owner:TEXT:*:#: {
if ($1 == op) { mode $chan +o $2- }
}
Posted By: hixxy Re: User levels - 31/07/06 10:00 PM
The { } aren't needed.
Posted By: Crinul Re: User levels - 31/07/06 10:08 PM
blush

ON owner:TEXT: *:#: {

Is needed laugh
Posted By: hixxy Re: User levels - 31/07/06 10:11 PM
Ah I didn't noticed you'd added that as well. :tongue:
Posted By: HaleyJ Re: User levels - 31/07/06 11:03 PM
Hi actually i dont have the brackets and everything works fine. This is some of what i have.

on +owner:TEXT:*:#: {

{
if ($1 == !say) msg $Chan $replace($2-,$Chr(32),$Chr(160))
if ($1 == !host) msg $chan $fulladdress
if ($1 == op) mode $Chan +o $2-
if ($1 == halfop) mode $Chan +h $2
if ($1 == deop) mode $Chan -o $2-
if ($1 == dehop) mode $Chan -h $2
if ($1 == voice) mode $Chan +v $2
if ($1 == devoice) mode $Chan -v $2
if ($1 == kick) kick $Chan $2
}
}

I dont think its the code that needs fixing as it works for the names in the user levels just the ON kick script does not work with an address just the ON owner
the missing : was cuz i just quickly wrote it to set an example i just want to know why it wont work with a user address
Posted By: RusselB Re: User levels - 01/08/06 01:29 AM
The /kick command requires a nick. It will not work with an address directly. The others will work with either nick or address.

One way around this is to use /ban -ku <channel> <address>
Posted By: HaleyJ Re: User levels - 01/08/06 09:56 PM
Ok that was a help. Thanks
Posted By: viveknath Re: User levels - 03/08/06 09:18 AM
ya me too has a problem...there is a site named http://www.devaswam.com there i am asked to install java in my computer. i can see where can i get it. and how can i chat from there???
© mIRC Discussion Forums