I can't seem to get a result out of it. Is this the correct way to use it?
my $nick = "mynickname";
my $ip = odch::get_ip($nick);
When I use it like this, I get nothing in $ip. I should have a string, correct?
Logged In: YES user_id=666673
Hi,
yes, I think it should work.
In my bot, I use this:
if($command eq ".getip") my($userip) = odch::get_ip($command2); odch::data_to_user($user, "\$To: $user From: $botname \$<$botname> $command2 has ip: $userip|");
where $command2 is a string (which I get from the whole line using regexp). It works fine.
Log in to post a comment.
Logged In: YES
user_id=666673
Hi,
yes, I think it should work.
In my bot, I use this:
if($command eq ".getip")
my($userip) = odch::get_ip($command2);
odch::data_to_user($user, "\$To: $user From: $botname
\$<$botname> $command2 has ip: $userip|");
where $command2 is a string (which I get from the whole line
using regexp).
It works fine.