# File rbot/plugins/remind.rb, line 71 def privmsg(m) if(m.params =~ /^(\S+)\s+(?:about\s+)?(.*)\s+in\s+(.*)$/) who = $1 subject = $2 period = $3 if(who =~ /^me$/) who = m.sourcenick else unless(m.plugin =~ /^remind\+$/) m.reply "incorrect usage: use remind+ to remind persons other than yourself" return end end if(err = add_reminder(who, subject, period)) m.reply "incorrect usage: " + err return end elsif(m.params =~ /^(\S+)\s+(?:about\s+)?(.*)\s+every\s+(.*)$/) who = $1 subject = $2 period = $3 if(who =~ /^me$/) who = m.sourcenick else unless(m.plugin =~ /^remind\+$/) m.reply "incorrect usage: use remind+ to remind persons other than yourself" return end end if(err = add_reminder(who, subject, period, true)) m.reply "incorrect usage: " + err return end elsif(m.params =~ /^(\S+)\s+(?:about\s+)?(.*)\s+at\s+(.*)$/) who = $1 subject = $2 time = $3 if(who =~ /^me$/) who = m.sourcenick else unless(m.plugin =~ /^remind\+$/) m.reply "incorrect usage: use remind+ to remind persons other than yourself" return end end if(err = add_reminder(who, subject, time)) m.reply "incorrect usage: " + err return end elsif(m.params =~ /^(\S+)\s+no\s+more\s+(?:about\s+)?(.*)$/) who = $1 subject = $2 if(who =~ /^me$/) who = m.sourcenick else unless(m.plugin =~ /^remind\+$/) m.reply "incorrect usage: use remind+ to remind persons other than yourself" return end end del_reminder(who, subject) elsif(m.params =~ /^(\S+)\s+no\s+more$/) who = $1 if(who =~ /^me$/) who = m.sourcenick else unless(plugin =~ /^remind\+$/) m.reply "incorrect usage: use remind+ to remind persons other than yourself" return end end del_reminder(who) else m.reply "incorrect usage: " + help(m.plugin) return end @bot.okay m.replyto end