mIRC Home    About    Download    Register    News    Help

Print Thread
#25494 22/05/03 10:34 PM
Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
when sum1 is kicked with the word "porn" in the reason i wanna, auto add the knick 2 pornlist how wud i do this?
wot wud the identifiers be? thx smirk

#25495 22/05/03 10:35 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:KICK:#: {
if ($knick != $me) && ($istok($1-, porn, 32)) /write pornlist.txt $knick
}


-KingTomato
#25496 22/05/03 11:21 PM
Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
Nah Nah i mean i want the person who was kicked (pornbot) to automatically be added 2 my userlist u kno wot i mean?

#25497 22/05/03 11:23 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:KICK:#: {
if ($knick != $me) && ($istok($1-, porn, 32)) /auser level $address($knick, 11)
}


-KingTomato
#25498 23/05/03 08:56 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
or u cud use
on ^*:KICK:#:{
if ($knick != $me) && (*porn* iswm $2-) {
auser porn $address($knick,1)
access # add deny $address($knick,1)
}
else {
HALT
}
}


new username: tidy_trax
#25499 23/05/03 08:01 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
just stop talking plz...

First off the ^ prefix is not needed. Secondly, he was looking for adding it to a user level, not channel access list. Thirdly, is it so pointless to add else { halt }


-KingTomato
#25500 23/05/03 10:20 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i know but the ban makes it better, using the ^ is the way ive been taught and else { makes it quicker smile


new username: tidy_trax
#25501 23/05/03 10:21 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Quicker? no..It takes more time for mirc to evaluate a halt, then to just visibly see that the end of the statement is right there.


-KingTomato
#25502 23/05/03 10:40 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
no because if the else { isnt there mirc has to decide what to do if it isnt = to if (w.e


new username: tidy_trax
#25503 23/05/03 11:09 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Whatever-- Even if *if* you were right, is a few hundreths, if not thousandths) of a second going to matter?


-KingTomato
#25504 24/05/03 12:18 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Assuming mIRC does anything like most scripted languages for an unconditional branch (else statement), it is SLOWER to include an else statement. I have no idea why you would think it would be faster. The reasoning you gave made no sense at all.

#25505 24/05/03 12:23 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
1. who cares
2. it wud also be very quick to evaluate an else statement


new username: tidy_trax
#25506 24/05/03 03:35 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
okay, go ahead and be 13 keys closer to arthritis per statement >:D


-KingTomato

Link Copied to Clipboard