summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 17:43:19 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 17:43:19 +0100
commite57295d1ff47aacc88257ee1a1f0c615d63d886b (patch)
treed1233820c8820b1d389e7b7cf7c69e26b25f910d /data
parent904288affde8a5c8431233e3852ea21ab95a3210 (diff)
* suppress a couple of warnings about ambiguous parameters
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/linkbot.rb2
-rw-r--r--data/rbot/plugins/urban.rb2
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 ', '