ircanywhere / irc-factory

A rebuilt irc-factory from simple-irc-socket and irc-message. Get support at #ircanywhere on freenode
https://ircanywhere.com
MIT License
60 stars 14 forks source link

List Caching Error #11

Closed Jazcash closed 10 years ago

Jazcash commented 10 years ago
        var key = ircObject.key.toString();
TypeError: Cannot call method 'toString' of undefined
    at ListCache.createList (/home/action/Jazbot/lib/node_modules/irc-factory/lib/listcache.js:93:26)

Even without .toString() (which doesn't look like is required), it doesn't seem to work properly when capturing a list event.

rickihastings commented 10 years ago

Ah ok, will fix this when I get a chance. It's required for the ircanywhere use case (keys are mongodb Object IDs), although a check can be done to prevent this from happening.