1 class RotPlugin < Plugin
2 def help(plugin, topic="")
3 "rot13 <string> => encode <string> to rot13 or back"
6 unless(m.params && m.params =~ /^.+$/)
7 m.reply "incorrect usage: " + help(m.plugin)
10 m.reply m.params.tr("A-Za-z", "N-ZA-Mn-za-m");
13 plugin = RotPlugin.new
14 plugin.register("rot13")