Permalink
Commits on May 12, 2014
  1. Merge pull request #69 from aaronj1335/enable-ssl-support

    Jonas Westerlund committed May 12, 2014
    enable ssl connections through IRC-js api
  2. Merge pull request #68 from aaronj1335/net-error-event-listener

    Jonas Westerlund committed May 12, 2014
    correctly listen for network error events
  3. enable ssl connections through IRC-js api

    aaronj1335 committed May 12, 2014
    this allows the user to include an `ssl` hash (or bool) in the server
    connection params:
    
    ```js
    var irc = require('irc-js');
    var bot = irc.connect({
      server: {
        address: 'chat.freenode.net',
        port: 6697,
        ssl: true // could also be: {rejectUnauthorized: false}
      },
      nick: 'aaronj1335'
    }, function(bot) {
      // ...
    });
    ```
    
    the value defaults to false, and if it's truthy, it gets passed strait
    through to [`tls.connect`][tls-connect].
    
    a couple thoughts:
    
    - i didn't include a unit test only because i don't know what exactly to
    test, though i'm happy to implement something
    
    - this messes with the server caching. cases where the user wants two
    connections, one ssl and one not ssl to the same server/port will be
    handled incorrectly. i think these are rare enough that it's safe to
    ignore for now though.
    
    [tls-connect]: http://nodejs.org/api/tls.html
  4. fixup tests

    aaronj1335 committed May 12, 2014
    the callback to `Channel#join` doesn't receive the new channel object as
    the first argument. this was causing tests to fail. i tweaked the tests
    to just use the return value of `join` instead of the parameter in the
    interest of just getting the tests to pass.
    
    ideally i would fix the argument, but that was a bit more involved, and
    i just want to debug the network error problem.
Commits on Feb 4, 2014
  1. Delete unused Rakefile

    gf3 committed Feb 4, 2014
Commits on Feb 1, 2014
  1. Bump version

    Jonas Westerlund committed Feb 1, 2014
  2. Make js2-mode happy

    Jonas Westerlund committed Feb 1, 2014
    See #64
  3. Add `mergeObject` function and use that instead of node's `extend`

    Jonas Westerlund committed Feb 1, 2014
    This fixes #66, where providing a configuration object like
    `{ user: { password: "taco" }}` would overwrite the `user` property entirely.
    This resulted in IRC-js sending messages with `undefined` parameters,
    causing a `TypeError` when attempting to serialize these message parameters.
Commits on Jan 28, 2014
  1. Merge pull request #64 from luser/nit-fixes

    Jonas Westerlund committed Jan 28, 2014
    Fix some nits.
  2. Fix some nits.

    luser committed Jan 27, 2014
    This is mostly missing semicolons, with a few trailing whitespace removals as well as a couple of fixes to make functions return values consistently. All in the name of making js2-mode happier.
Commits on Jan 7, 2014
  1. Version bump

    Jonas Westerlund committed Jan 7, 2014
Commits on Dec 6, 2013
  1. Add missing callback argument

    Jonas Westerlund committed Dec 6, 2013
Commits on Apr 24, 2013
  1. Version bump

    Jonas Westerlund committed Apr 24, 2013
Commits on Mar 18, 2013
  1. Merge pull request #62 from curious-attempt-bunny/master

    nlogax committed Mar 18, 2013
    Made config-example.json legal JSON
Commits on Mar 15, 2013
  1. Made config-example.json legal JSON

    Merlyn Albery-Speyer committed Mar 15, 2013
  2. Version bump to 2.0.0-beta.2

    gf3 committed Mar 15, 2013
Commits on Feb 13, 2013
  1. Skip \r and \n in params

    Jonas Westerlund committed Feb 13, 2013
Commits on Jan 21, 2013
  1. Update README

    gf3 committed Jan 21, 2013
Commits on Jan 19, 2013
  1. Add missing `*/` in README

    Jonas Westerlund committed Jan 19, 2013
  2. Switch argument order to be consistent with other libs

    Jonas Westerlund committed Jan 19, 2013
  3. Remove JSON config in favour of plain object

    Jonas Westerlund committed Jan 19, 2013
  4. Update README

    Jonas Westerlund committed Jan 19, 2013
Commits on Sep 11, 2012
  1. Update README with 2.0 beta information

    Jonas Westerlund committed Sep 11, 2012
    Fix custom error so stack traces work.
    Fix an incomplete test.
  2. Version bump: 2.0.0-beta.1

    Jonas Westerlund committed Sep 11, 2012
  3. Use lower case object IDs

    Jonas Westerlund committed Sep 11, 2012
    This should make most channels and more nicks in the various `Map's accessible
    using e.g. `bot.channels.get("#foo")'. Thus, case weirdness can be ignored
    when such names are used, and use of `id()' can be avoided.
Commits on Aug 20, 2012
  1. Remove signals module

    Jonas Westerlund committed Aug 20, 2012
    There was no big advantage to have composable events here,
    since they never have any dependencies on each other anyway.
Commits on Aug 17, 2012
  1. Make API simpler and smaller

    Jonas Westerlund committed Aug 17, 2012
  2. Simplify Client methods

    Jonas Westerlund committed Aug 17, 2012
Commits on Aug 15, 2012
  1. Create a buffer per Client instance

    Jonas Westerlund committed Aug 15, 2012
    In case you would want multiple cients in the same app.
    Fix bug with multiple messages in the same packet.
Commits on Aug 14, 2012
  1. Simplify and improve buffery stuff

    Jonas Westerlund committed Aug 14, 2012
    Move responsibility to irc module, away from message.
    Put extra bytes in beginning, and fix offset bugs.
Commits on Aug 12, 2012
  1. Add hand-rolled parser

    Jonas Westerlund committed Aug 12, 2012
    Use `Buffer' instead of strings for parsing
    
    Remove PEG.js
    
    Remove `objects' module
    
    Fix some type errors uncovered when using `Buffer'
Commits on Aug 1, 2012
  1. Allow | in user part of message

    Jonas Westerlund committed Aug 1, 2012