From e57295d1ff47aacc88257ee1a1f0c615d63d886b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 13 Feb 2008 17:43:19 +0100 Subject: * suppress a couple of warnings about ambiguous parameters --- data/rbot/plugins/linkbot.rb | 2 +- data/rbot/plugins/urban.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/rbot/plugins/linkbot.rb b/data/rbot/plugins/linkbot.rb index a47f4b49..f36aa919 100644 --- a/data/rbot/plugins/linkbot.rb +++ b/data/rbot/plugins/linkbot.rb @@ -60,7 +60,7 @@ class LinkBot < Plugin # strip any formatting codes in the new_nick. some people configure their linkbots # to embed these codes in nicknames (such as to\B\Bm), to avoid triggering the # person's highlight - new_nick.gsub! /[#{Bold}#{Underline}#{Reverse}#{Italic}#{NormalText}]/, '' + new_nick.gsub!(/[#{Bold}#{Underline}#{Reverse}#{Italic}#{NormalText}]/, '') debug "#{m.sourcenick} reports that #{new_nick} said #{message.inspect} on #{network}" # One way to pass the new message back to the bot is to create a PrivMessage # and delegate it to the plugins diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb index 5aae26c6..98066e60 100644 --- a/data/rbot/plugins/urban.rb +++ b/data/rbot/plugins/urban.rb @@ -32,7 +32,7 @@ class UrbanPlugin < Plugin total ||= rv.size - return m.reply "#{Bold}#{word}#{Bold} not found" if rv.empty? + return m.reply("#{Bold}#{word}#{Bold} not found") if rv.empty? if notfound suggestions = rv.map { |s| Underline + s[1] + Underline }.uniq.join ', ' -- cgit v1.2.3