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

Fix raw array params #20

Closed rodms10 closed 10 years ago

rodms10 commented 10 years ago

When an array was passed to raw, it was being converted to parameters, but code expected an array. This change always sends whatever was passed to raw as a param.

This was introduced by 937a238f930a93a9fe2bb5130919b9fcf564f52b (my bad!). When raw was passed ['WHO', '#channel'] for example, data argument would be the string WHO and #channel would only be accessible through the arguments array. That change checked if data was a string, which is true but it would then drop the second argument when sending the message over.

This fixes item 3 of https://github.com/ircanywhere/ircanywhere/issues/90.