From 9c1f0509f90e6c4357cb3af7bcc157a92ba28390 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 10 Dec 2009 10:54:09 +0000 Subject: マルチポストの設定が空の場合に違う意味でマルチポストしてしまうのを修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36113 d0d07461-0603-4401-acd4-de1884942a52 --- amebanow.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'amebanow.js') diff --git a/amebanow.js b/amebanow.js index 9e2d13b..0fe1113 100755 --- a/amebanow.js +++ b/amebanow.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = Amebaなう nau Amebaなうする - 1.0.0 + 1.0.2 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -106,7 +106,9 @@ let INFO = 'Description', function (args) { let msg = args.literalArg; - let mpCmds = (liberator.globalVariables.amebanow_multipost || '').split('|'); + let mpCmds = + let (gv = liberator.globalVariables.amebanow_multipost) + (gv ? gv.split('|') : []); now(msg); mpCmds.forEach(function (cmd) liberator.execute(cmd + ' ' + msg)); }, -- cgit v1.2.3