From 3a4374bbe070742782a2edadc2ddf5b9f353baf2 Mon Sep 17 00:00:00 2001 From: "Ryan Scheel (Havvy)" Date: Fri, 10 Jan 2014 04:25:35 -0800 Subject: [PATCH] 0.8.1 --- doc/changelog.txt | 13 ++++++++++++- lib/client.js | 4 ++-- lib/output-socket.js | 2 +- package.json | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 6e1faf4..2d44bc6 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -143,4 +143,15 @@ Changelog * Response can now be a promise of the other types (string, [string]) * Client.nickname is an instance of NicknameTracker (and still callable). * Tennu Modules 2.0.0 Integration. - ** This was supposed to be for 0.9.0, but meh. \ No newline at end of file + ** This was supposed to be for 0.9.0, but was needed first. + ** Modules are now objects that have the following properties: + *** init: function (client, imports) => instance + *** requires: [string] OPTIONAL, names of modules + *** requiresRoles: [string] OPTIONAL, names of roles + *** role: string OPTIONAL + *** name: string Will be added for you unless you use client.initialize() directly. + +0.8.1: + * client.ctcp() and client.act() fixed. + * client.initialize() renamed to client.initializeModule() + * client.isInitializable() renamed to client.isModuleInitializable() \ No newline at end of file diff --git a/lib/client.js b/lib/client.js index fdc6285..d339f5c 100644 --- a/lib/client.js +++ b/lib/client.js @@ -206,8 +206,8 @@ Client.prototype.once = delegate('_subscriber', 'once'); Client.prototype.use = delegate('_modules', 'use'); Client.prototype.getModule = delegate('_modules', 'moduleExports'); Client.prototype.getRole = delegate('_modules', 'roleExports'); -Client.prototype.initialize = delegate('_modules', 'initialize'); -Client.prototype.isInitializable = delegate('_modules', 'isInitializable'); +Client.prototype.initializeModule = delegate('_modules', 'initialize'); +Client.prototype.isModuleInitializable = delegate('_modules', 'isInitializable'); Client.prototype.addHook = delegate('_modules', 'addHook'); // implements Logger diff --git a/lib/output-socket.js b/lib/output-socket.js index 6238816..f558751 100644 --- a/lib/output-socket.js +++ b/lib/output-socket.js @@ -56,7 +56,7 @@ var OutputSocket = function (socket, messageHandler, nickname, logger) { }, ctcp : function recur (location, type, message) { - if (util.isArray(message)) { + if (Array.isArray(message)) { message.forEach(function (msg) { recur.call(this, location, type, msg); }); diff --git a/package.json b/package.json index a5c84e6..e270306 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tennu", - "version": "0.8.0", + "version": "0.8.1", "description": "Tennu Node.js IRC Framework", "maintainers": [ {