summaryrefslogtreecommitdiff
path: root/rbot/plugins/cal.rb
blob: 1e8231946653bf35ecae08851bb68409c5877f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CalPlugin < Plugin
  def help(plugin, topic="")
    "cal [options] => show current calendar [unix cal options]"
  end
  def privmsg(m)
    if m.params && m.params.length > 0
      m.reply Utils.safe_exec("cal", m.params) 
    else
      m.reply Utils.safe_exec("cal")
    end
  end
end
plugin = CalPlugin.new
plugin.register("cal")