This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

ip2nick - nick2ip

Old posts that have not been replied to for several years.
Locked
M
Miro

ip2nick - nick2ip

Post by Miro »

Hi...

I am a beginner eggdrop scripter, and I have run into a dead-end to what I should do and to find information for things...

What I want to do is a simple public command !ip2nick <ip>, which will try to get the irc nick for the ip supplied...

Making the command and such working is simple... But to do the rest is a bit harder...

If doing this in mIRC manuall. This is what I do:
1. /dns <ip> - will give me the hostname for that ip
2. /who <hostname> - will give me the nick

But how do I do this in an eggdrop script?

And also, where can I find good explanation for eggdrop scripts.
i.e I know what all this does:
puthelp "PRIVMSG $chan :hello world!"

I have tried to find what other things than "privmsg", "notice" there are.
Because looking at other scripts, I have found this for example:
putserv "WHOIS $nick"

So what does "WHOIS" do... And are there other ones?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Have you tried /whois in mIRC?

Commands like /dns in mirc, are not as simple in eggdrop. Mirc includes a lot of shortcuts, that do not actualy send messages to the server.

If you want more information on the commands available to send on IRC, you should read the RFC (a set of guidlines on how IRC works). This is available here http://rfc.sunsite.dk/rfc/rfc1459.html
Locked