summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-13 10:47:29 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-13 10:47:29 +0000
commitbe805c5e8abd50f0fde2fe0af6bcca5850afc742 (patch)
treeec957feb2609763c1f9fb79a5ec2d15bfa1d17f9
parente9c6f14aef48ce01e802a15ee6bea520b38227f9 (diff)
messagemapper: fix set_auth_path() logic
-rw-r--r--lib/rbot/messagemapper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb
index 8b52baa4..62543f32 100644
--- a/lib/rbot/messagemapper.rb
+++ b/lib/rbot/messagemapper.rb
@@ -413,6 +413,7 @@ class Bot
end
pre = nil if extra.sub!(/^!/, "")
post = nil if extra.sub!(/!$/, "")
+ extra = nil if extra.empty?
else
extra = nil
end