mIRC Home    About    Download    Register    News    Help

Print Thread
#25224 20/05/03 11:50 AM
Joined: Apr 2003
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Apr 2003
Posts: 3
Hello everyone,
What I'm trying to do is an on join auto kick for those who are in bad channels and for those who have a bad full name...
My problem is that the channel I operate is big and whoising everyone will lag me if I don't put the whois into a @Window
Any help welcome...


RadioDeeJay @ IRCtoo
IRCtoo - The #1 Network!
#25225 20/05/03 12:14 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
that won't help either, u must to /whois him to know in which channels he is on

#25226 20/05/03 01:33 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
You can catch the raw and put to the @window ..
But a better soltion is to sit to the bad channel .. and if the user what sit in the bad channel will join to your channel .. You will ban him .. You can use a clone ..

About the full name .. The whois is only soltution .. Use the raw to catch .. raw nr:*: If($1 = some) { do somt } to know what is the raw nr use the debug -n @Window .. $1 is a example .. can be 2 3 4.. depend the name position in the response ..


mIRC Chm Help 6.16.0.3 Full Anchored!
#25227 20/05/03 02:39 PM
Joined: Apr 2003
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Apr 2003
Posts: 3
Okay with the whois... I just want it to apear in a @Window so that it dosn't lag me too mutch... smile


RadioDeeJay @ IRCtoo
IRCtoo - The #1 Network!
#25228 20/05/03 02:44 PM
Joined: Apr 2003
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: Apr 2003
Posts: 3
The "sit in the channel" is not an option for me...
How would I do the code with the whois?


RadioDeeJay @ IRCtoo
IRCtoo - The #1 Network!
#25229 20/05/03 03:52 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
hehe, that will lag u anyway, it's not matter if u put what u get from the server to a @window or not

#25230 20/05/03 10:36 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
For fullname, /who will work as well, saving u about 2-4 lines of text per user.. Just do a who on the channel, and then from there read all the raw events. here is a lil example..

on 1:JOIN:#: {
if ($nick == $me) /who $chan
}

raw 352:*: {
/set -u0 %realname $9-
/echo -a %realname
}

As for the whois each user, you could use something like....

on 1:JOIN:#: {
if ($nick == $me) {
/set %badchans 1
/set -u0 %user 1
while (%user <= $nick($chan, 0)) {
if ($nick($chan, %user) != $me) .timer 1 $calc(%user * 2) /whois $nick($chan, %user)
/inc -u0 %user
}
}
else {
/set %badchans 1
/whois $nick
}
}

; Real name / Address
raw 311:*: {
if (%badchans) {
/set -u0 %realname $6-
; search for bad names
/haltdef
}
}

; Channel reply
raw 319:*: {
if (%badchans) {
/set -u0 %chanlist $3-
; look for channels
/haltdef
}
}

raw 307:*: { if (%badchans) /haltdef } | ;registered name
raw 312:*: { if (%badchans) /haltdef } | ; server name
raw 313:*: { if (%badchans) /haltdef } | ; is a Network Service
raw 317:*: { if (%badchans) /haltdef } | ; idle/online
raw 318:*: { if (%badchans) { /unset %badchans | /haltdef } } | ; /whois end

the var %badchans suppresses the whois echo so you don't see all those lines. The timer is just to *help* prevent a lot of lag with server. The timers will whois a new user every 2 seconds. If you want a longer/shorter delay, you can play with that.

I may not have all the whois raws so u can just add them as need be. I did a whois on a few ppl on my netowrk, and just looked up the raw.

Hope that helps.


-KingTomato
#25231 21/05/03 12:52 PM
Joined: Dec 2002
Posts: 339
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
From what I understand from RadioDeeJay's msgs...
What we are trying to do here is to Kick someone who joins the channel and is on bad channels and kick those who match in the fullname part with an akick list witch will probably be listed in a .txt file or somewere like this... RadioDeeJay's problem is the he is in a big channel and whoising everyone would get a lot of lag... so all whois' need to be placed in a @Window smile

Hope I helped somehow...

#25232 21/05/03 10:39 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Well, thats what i did. Instead of puytting them in a custom window though, i have them not echo completly. Thats where the %badchans comes in.

As far as an akick, that could be added to the raw even that is kicking the user in the firsty place. Just have it write the address though, prevnting different names. Its been my experience to use address 11. Thats the most global, and yet most unique to a single user as far as the amount of change they can do on their end.


-KingTomato

Link Copied to Clipboard