Mercurial > irccd
changeset 397:da240b179e8b
Plugin plugin: clean whitespace
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 10 Jan 2017 15:34:16 +0100 |
parents | 8681c6a9a9b2 |
children | 6aae16300e0c |
files | plugins/plugin/plugin.js |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/plugin/plugin.js Tue Jan 10 15:18:54 2017 +0100 +++ b/plugins/plugin/plugin.js Tue Jan 10 15:34:16 2017 +0100 @@ -49,17 +49,17 @@ // -------------------------------------------------- for (var key in Plugin.format) { var optname = "format-" + key; - + if (typeof (Plugin.config[optname]) !== "string") continue; - + if (Plugin.config[optname].length === 0) Logger.warning("skipping empty '" + optname + "' format"); else Plugin.format[key] = Plugin.config[optname]; } }, - + keywords: function (server, channel, origin) { return { @@ -99,11 +99,11 @@ kw.license = info.license; kw.summary = info.summary; kw.version = info.version; - + str = Util.format(Plugin.format["info"], kw); } else str = Util.format(Plugin.format["not-found"], kw); - + server.message(target, str); },