mIRC Home    About    Download    Register    News    Help

Print Thread
#20736 24/04/03 03:54 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
.&Ban
..0. $address($snick(#,1),0):ban $$1 0
..-
..1. $address($snick(#,1),1): ban $$1 1
..2. $address($snick(#,1),2): ban $$1 2
..3. $address($snick(#,1),3): ban $$1 3
..4. $address($snick(#,1),4): ban $$1 4
..5. $address($snick(#,1),5): ban $$1 5
..-
..6. $address($snick(#,1),6): ban $$1 6
..7. $address($snick(#,1),7): ban $$1 7
..8. $address($snick(#,1),8): ban $$1 8
..9. $address($snick(#,1),9): ban $$1 9
..10. $address($snick(#,1),11): ban $$1 10

why i cant make i to show the ip address of the person i right click on... when i right click on my nick it does show but when i test with other nicks it doesnt, anyone know anything wrong with this?

#20737 24/04/03 03:55 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If the address of the person you right-click on isn't in the IAL it won't work.

#20738 24/04/03 03:58 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
is there any code that auto do the ial thingy when someone join so i dont have to do manually everytime someone join?

#20739 24/04/03 04:00 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
When someone joins their address will automatically be added to the IAL. To update the IAL with everyone on the channel's addresses type //who #

#20740 24/04/03 05:05 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Here's the code for automatic IAL update:
Code:
On me:*:join:#:who #
raw 352:& #*:halt
raw 315:& #*:halt

and if the IAL is necessary for you only when you're opped, consider changing the on JOIN event to on OP:
Code:
On *:op:#: if $opnick == $me && !$chan(#).ial { who # }

Personally I wouldn't update channel IAL merely for displaying addresses in the popup menus. If I don't have anything important to do with the address information, I just avoid requesting it.

Displaying bantype N or a nick!user@host demo in the popup instead of the actual address would suffice.

#20741 24/04/03 10:09 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
That completely disables the use of /who #channel. It's better to only halt the replies when you are joining chans.
Code:
on me:*:join:#:inc -u120 $+(%,who.,$cid,#) | who #
raw 352:*:if $eval($+(%,who.,$cid,$2),2) { halt }
raw 315:*:if $eval($+(%,who.,$cid,$2),2) { unset $+(%,who.,$cid,$2) | halt }

#20742 24/04/03 10:50 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes yours is definitely better.


Link Copied to Clipboard