Skip to content

irc:whois() is unrealisticly slow #37

@f4th0m

Description

@f4th0m

Hello!

First thanks for this code, it works really nicely.
The problem I have is when I use irc:whois() it takes up to 2 seconds when the user is present and up to 4 seconds when there is no such user.
Here my test case, this function is in onchat hook:
if (channel == bot.nick and command == "whois") then
local userinfo = bot:whois(message:sub(7))['userinfo']
if (userinfo) then
local host = userinfo[4]
if (host) then
sircbot:sendChat(user.nick, host)
end
else
sircbot:sendChat(user.nick, "user not found")
end
end

The mentioned times are reponse times, between giving the command to the bot and the reply of the bot.

Thanks in advance!
Tamás

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions