summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-09-16 10:26:30 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-09-16 10:26:30 +0000
commit164c96aef65888b947d241306438ffd20d81d6a7 (patch)
tree8ac37d4a9b23dba650b75192883a9d82c12de8ac /data/rbot/plugins
parentfc58df59392b723d4ab542c2406ebe4d6cb3ccba (diff)
path from vampjon in ticket #34
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/rot13.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/rot13.rb b/data/rbot/plugins/rot13.rb
index 28e9243f..447d0803 100644
--- a/data/rbot/plugins/rot13.rb
+++ b/data/rbot/plugins/rot13.rb
@@ -3,8 +3,8 @@ class RotPlugin < Plugin
"rot13 <string> => encode <string> to rot13 or back"
end
def rot13(m, params)
- m.reply params[:string].tr("A-Za-z", "N-ZA-Mn-za-m");
+ m.reply params[:string].join(" ").tr("A-Za-z", "N-ZA-Mn-za-m");
end
end
plugin = RotPlugin.new
-plugin.map 'rot13 :string'
+plugin.map 'rot13 *string'