From de9166163b9e0dad6341a9c78971baeed83cdada Mon Sep 17 00:00:00 2001 From: Ammar Askar Date: Wed, 25 Nov 2015 18:44:16 -0500 Subject: [PATCH] Fix up some syntax errors --- data/rbot/plugins/authserv.rb | 5 ++--- data/rbot/plugins/bored.rb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data/rbot/plugins/authserv.rb b/data/rbot/plugins/authserv.rb index d4333b48..b1273902 100644 --- a/data/rbot/plugins/authserv.rb +++ b/data/rbot/plugins/authserv.rb @@ -66,11 +66,11 @@ class AuthServPlugin < Plugin case m.message when @bot.config['authserv.authenticated_string'] debug "we identified successfully to nickserv" - if @requestor != nil: + if @requestor != nil @bot.notice(@requestor, "We identified successfully to nickserv") end else - if @requestor != nil: + if @requestor != nil @bot.notice(@requestor, "Got message back from #{m.sourcenick}: #{m.message}") end end @@ -82,4 +82,3 @@ plugin = AuthServPlugin.new plugin.map "authserv", :action => 'do_auth' plugin.default_auth('*', false) - diff --git a/data/rbot/plugins/bored.rb b/data/rbot/plugins/bored.rb index 3c4d7132..2852637d 100644 --- a/data/rbot/plugins/bored.rb +++ b/data/rbot/plugins/bored.rb @@ -73,7 +73,7 @@ class BoredPlugin < Plugin m.reply("[#{victim+1}]: #{items[victim]}") else idx = params[:index].to_i - 1 - if items.length < idx: + if items.length < idx m.reply _("Err, don't have that many items") else m.reply _("[#{params[:index]}]: #{items[idx]}") -- 2.32.0.93.g670b81a890