From f6a17b14e3fe537d962b8c6c6958e6d85910ce89 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 28 Mar 2014 00:34:37 +0100 Subject: [PATCH] emit warning instead of printing it --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 25a80ab..ea0b059 100644 --- a/index.js +++ b/index.js @@ -137,7 +137,7 @@ Client.prototype._handleResponse = function (data, announce) { var warning = data['warning message'] if (warning) { - console.warn(warning) + self.emit('warning', warning); } var interval = data.interval || data['min interval']