Skip to content
MSN

Ip address

A TG007 community discussion started by DreaM.

Discussion 7 posts
Page 1 of 1
Open
Topic #827 · 7 published posts · 736 views

hi all biggrin.gif , I have question about ip address:

I am using the following code:

on *:connect:{ localinfo }

and this part is from my theme:

Note: MSN has detected you have connected to this chat section from the ip address $ip

but I never see my IP when I join for first time and I need to hop to see it. I think that because diaplaying join eho is faster than getting localinfo then displaying it.

Is not there any better way to do it? help.gif

Edited Jul 9, 2004 8:08 AM by DreaM

whats the echo line for it, i can fix it up for you from there.

go to view > options

then click the + on Connect

then click local info

then make sure you have the following ticked

 

local host

ip address

 

then make sure you have lookup method set to normal

then click ok

 

then add this to its own file and try join a room

on first time it might not get ip, but after that it should have it

 

on *:connect: { localinfo }
on ^*:join:#: {
 if ($nick == $me) { 
   echo $color(join) -t $msn.get($cid,room) 04Note: MSN has detected that you are connected to this chat session from the IP address 04 $ip $+04.
}
}

Edited Jul 9, 2004 11:24 AM by OZZY_10â„¢

My code does NOT have bugs. It just develops random features.

on *:start: {
 .getIp
}
alias getIp {
 sockopen ip msn.com 80
}
on *:sockopen:ip: { .Set %ip $sock($sockname).bindip | sockclose $sockname }

 

 

dont know if this is what your looking for but ir get you your ip and set the var %ip just add %ip to your theme hope thta helps taz.gif

on first time it might not get ip, but after that it should have it

thank you ozzy but yes it is my problem and that is why I asked if there is a way to get it from first time directly because I should hop to see it oops.gif

 

thank you gate and latina also for reply

Edited Jul 9, 2004 2:46 PM by DreaM

For that i think the answer you are looking for is this

 

[/code]

raw 332:*:{ /command her }


 

hope this helps

fixed.gif