mIRC Home    About    Download    Register    News    Help

Print Thread
#34161 05/07/03 01:20 AM
Joined: Dec 2002
Posts: 14
J
JuZt3r Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2002
Posts: 14
I want to ban list a hole chan, so i tried to make a script that adds everyone who join\write somthing in the chan. its like this.
on *:join:#chan: {
auser -a hatechan $nick
}
on *:text:**:#chan: {
auser -a hatechan $nick
}
on @hatechan:join:#mychan: echo -at $nick ison hatechan!
what am i doing wrong?

#34162 05/07/03 02:54 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Just out of curiosity why have you got an on TEXT event that triggers when anything is said in a channel then adds the user to the hatechan level. When they join they are automatically added to the user list so there is no need for that event because they would already be in the hatechan user list.
Plus it should be on *:TEXT:*:#: { } not on *:TEXT:**:#: { }

#34163 05/07/03 03:02 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I am gussing it wont work because you have two on JOIN events in one script. I tried your code and it wouldn't work for me either. Try this code, it should work.

Code:
on *:JOIN:#: {
  guser 10 $nick 8
  if (10 isin $level($address($nick,8))) && ($me isop $chan) {
    echo -t *** $nick ison hatechan
  }
}

#34164 05/07/03 08:34 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias banall {
var %i 1
while (%i <= $nick($chan,0)) {
auser hatechan $address($nick($chan,%i),1)
inc %i
}
}
/me wonders why you want to banlist a whole channel anyway :tongue:


new username: tidy_trax
#34165 05/07/03 09:38 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
* SladeKraven thinks something kinky between the original poster and the channel agents (if any) is gonna go down. grin

#34166 05/07/03 09:49 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
me too shocked


new username: tidy_trax
#34167 05/07/03 03:20 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
well, it coud be similar to the whole "bad channel" theme. The user joins the "bad channel", then adds the whole room to a ban list. Then, they part the channel with that whole room ban-listed and can then take users who join and kick them if they saw them in the bad chan. >:D Simple enough


-KingTomato
#34168 05/07/03 03:27 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ive used that a few times, but a lot of the time its for other purposes shocked


new username: tidy_trax

Link Copied to Clipboard