aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2009-12-10 10:54:09 +0000
committeranekos2009-12-10 10:54:09 +0000
commit9c1f0509f90e6c4357cb3af7bcc157a92ba28390 (patch)
treec0b11fdd81ab57fa3fa4307868108ac8888c7034
parentd8635338dac2fac8fe301ac5ec59aed4a988b9eb (diff)
downloadvimperator-plugins-9c1f0509f90e6c4357cb3af7bcc157a92ba28390.tar.bz2
マルチポストの設定が空の場合に違う意味でマルチポストしてしまうのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36113 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xamebanow.js6
1 files changed, 4 insertions, 2 deletions
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 =
<name lang="ja">Amebaなう</name>
<description>nau</description>
<description lang="ja">Amebaなうする</description>
- <version>1.0.0</version>
+ <version>1.0.2</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -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));
},