# File lib/rbot/ircbot.rb, line 827 def help(topic=nil) topic = nil if topic == "" case topic when nil helpstr = "help topics: core, auth" helpstr += @plugins.helptopics helpstr += " (help <topic> for more info)" when /^core$/i helpstr = corehelp when /^core\s+(.+)$/i helpstr = corehelp $1 when /^auth$/i helpstr = @auth.help when /^auth\s+(.+)$/i helpstr = @auth.help $1 else unless(helpstr = @plugins.help(topic)) helpstr = "no help for topic #{topic}" end end return helpstr end