mIRC Home    About    Download    Register    News    Help

Print Thread
User levels #154727 31/07/06 06:07 PM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
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??

Re: User levels #154728 31/07/06 09:56 PM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
ON owner:TEXT:*:#: {
if ($1 == op) { mode $chan +o $2- }
}

Re: User levels #154729 31/07/06 10:00 PM
Joined: Sep 2005
Posts: 2,877
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,877
The { } aren't needed.

Re: User levels #154730 31/07/06 10:08 PM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
blush

ON owner:TEXT: *:#: {

Is needed laugh

Re: User levels #154731 31/07/06 10:11 PM
Joined: Sep 2005
Posts: 2,877
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,877
Ah I didn't noticed you'd added that as well. :tongue:

Re: User levels #154732 31/07/06 11:03 PM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
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

Last edited by HaleyJ; 31/07/06 11:05 PM.

Newbie
Re: User levels #154733 01/08/06 01:29 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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>

Re: User levels #154734 01/08/06 09:56 PM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Ok that was a help. Thanks


Newbie
Re: User levels #154735 03/08/06 09:18 AM
Joined: Aug 2006
Posts: 3
V
viveknath Offline
Self-satisified door
Offline
Self-satisified door
V
Joined: Aug 2006
Posts: 3
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???