PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Pedro on 22 January, 2004, 12:13:50

Title: Blackdc to show ip
Post by: Pedro on 22 January, 2004, 12:13:50
Hi guys,

Another 1 for you..

this is code to show ip of user that may be behind a router (so I think) its for dchub.
CODE  

Sub DataArival(curUser,curData)
  If left(curData,8) = "$BlackDC" Then
     curUser.SendData "$YourIP " & cStr(curUser.IP)
  End If

can someone please give me lua code for this.

I thank you all again for your support to us lesser beings.

HAPPY DAYS
Title:
Post by: kepp on 22 January, 2004, 14:55:45
all it does is that it is sending Ip to that user..  ?(

function NewUserConnected(curUser)
   curUser:SendData(Bot, "Your IP : "..curUser.sIP)
end

if you still want to use that code don't forget to end the subrutine too

End Sub
Title:
Post by: plop on 23 January, 2004, 00:11:07
QuoteOriginally posted by Pedro
Hi guys,

Another 1 for you..

this is code to show ip of user that may be behind a router (so I think) its for dchub.
CODE  

Sub DataArival(curUser,curData)
  If left(curData,8) = "$BlackDC" Then
     curUser.SendData "$YourIP " & cStr(curUser.IP)
  End If

can someone please give me lua code for this.

I thank you all again for your support to us lesser beings.

HAPPY DAYS
check here (http://board.univ-angers.fr/thread.php?threadid=63&boardid=9)

plop