Project

General

Profile

Feature #129

Add server:names() function

Added by David Demelier over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Category:
libirccd-js
Target version:
Start date:
06/05/2013
Due date:
06/21/2013
% Done:

100%

Estimated time:
8.00 h
Spent time:
MFD after:
MFD revision:
Branch:
Bookmark:
Platform:

Description

For the moment, there is no way to get a list of nicknames because it work as deferred and thus a little bit hard to implement. But this is probably a good function to implement nevertheless.

The probably best way to do it is to implement a functional style callback such as :

server:names(
    function (list)
        for i, v in ipairs(list)
            continue; -- v is a nick here
        end
    end
)

So we can store the lambda until the names has arrived. Using a queue of deffered call may help for further request such as CTCP request, DCC, ...

History

#1

Updated by David Demelier over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF