diff --git a/README.md b/README.md index d53064e..88ae28c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ weechat -P "alias,buflist,charset,exec,fifo,fset,irc,logger,perl,python,relay,script,trigger,typing" -r "/set weechat.plugin.autoload alias,buflist,charset,exec,fifo,fset,irc,logger,perl,python,relay,script,trigger,typing;/save;/quit" rm $HOME/.weechat/weechat.log && chmod 700 $HOME/.weechat && mkdir $HOME/.weechat/ssl git clone --depth 1 https://github.com/acidvegas/weechat.git $HOME/weechat -mv $HOM E/weechat/alias.conf $HOME/.weechat/alias.conf && mv $HOME/weechat/scripts/perl/*.pl $HOME/.weechat/perl/autoload/ && mv $HOME/weechat/scripts/python/*.py $HOME/.weechat/python/autoload/ +mv $HOME/weechat/alias.conf $HOME/.weechat/alias.conf && mv $HOME/weechat/scripts/perl/*.pl $HOME/.weechat/perl/autoload/ && mv $HOME/weechat/scripts/python/*.py $HOME/.weechat/python/autoload/ mkdir $HOME/.weechat/logs openssl req -x509 -new -newkey rsa:4096 -sha256 -days 3650 -out $HOME/.weechat/ssl/cert.pem -keyout $HOME/.weechat/ssl/cert.pem chmod 400 $HOME/.weechat/ssl/cert.pem diff --git a/scripts/python/masshl.py b/scripts/python/masshl.py index 2c78e78..969d2d3 100644 --- a/scripts/python/masshl.py +++ b/scripts/python/masshl.py @@ -13,7 +13,7 @@ def timer_cb(data, remaining_calls): while '%n' in msg: msg = msg.replace('%n', nicks[0], 1) nicks.pop(0) - weechat.command(chan, msg)) + weechat.command(chan, msg) except: pass finally: @@ -35,4 +35,4 @@ def masshl_cmd_cb(data, buffer, args): return weechat.WEECHAT_RC_OK if weechat.register('masshl', 'acidvegas', '1.0', 'ISC', 'mass hilight all nicks in a channel', '', ''): - weechat.hook_command('masshl', 'mass hilight all nicks in a channel', '', '', '', 'masshl_cmd_cb', '') \ No newline at end of file + weechat.hook_command('masshl', 'mass hilight all nicks in a channel', '', '', '', 'masshl_cmd_cb', '')