spion / triplie-ng

Chatbot with Markov chains BFS and Hebbian learning
MIT License
57 stars 16 forks source link

Cannot call method 'apply' of undefined #13

Closed xPaw closed 10 years ago

xPaw commented 10 years ago

When sending some random text starting with ">" it triggers an error:

/usr/lib/node_modules/triplie/modules/admin.js:35
            cmds[which[0]].apply(responder, args);
                           ^
TypeError: Cannot call method 'apply' of undefined
    at Stream.<anonymous> (/usr/lib/node_modules/triplie/modules/admin.js:35:28)
    at Stream.EventEmitter.emit (events.js:117:20)
    at Stream.<anonymous> (/usr/lib/node_modules/triplie/node_modules/ircee/lib/ircee.js:31:14)
    at Stream.EventEmitter.emit (events.js:95:17)
    at Stream.<anonymous> (/usr/lib/node_modules/triplie/node_modules/ircee/node_modules/split/index.js:35:16)
    at Stream.stream.write (/usr/lib/node_modules/triplie/node_modules/ircee/node_modules/split/node_modules/through/index.js:25:11)
    at Stream.method [as write] (/usr/lib/node_modules/triplie/node_modules/ircee/node_modules/duplexer/index.js:37:39)
    at write (_stream_readable.js:583:24)
    at flow (_stream_readable.js:592:7)
    at Socket.pipeOnReadable (_stream_readable.js:624:5)
spion commented 10 years ago

Fixed in c220487e523bcd256dafa9c34deb91b98d287f22 (published as 0.3.16)