tjcsl / cslbot

An easily extensible, modular irc bot.
GNU General Public License v2.0
15 stars 16 forks source link

enable viewing but not changing votes in pms #370

Closed tjhsstBot closed 11 years ago

tjhsstBot commented 11 years ago

Issue created by pfoley!peter@pool-173-66-22-141.washdc.fios.verizon.net

pefoley2 commented 11 years ago

this means moving the privmsg checks from handler.py down into the commands.

sapphire-arches commented 11 years ago

We could do this with the decorator functionality fwilson42 is working on.

pefoley2 commented 11 years ago

something like @access(reject=priv, msg=nope) ?

sckasturi commented 11 years ago

add a pm arg? then in the cmd

if pm = true: send() else: send()

-----

On Mon, Sep 23, 2013 at 5:08 PM, pefoley2 notifications@github.com wrote:

something like @access(reject=priv, msg=nope) ?

— Reply to this email directly or view it on GitHubhttps://github.com/tjcsl/cslbot/issues/370#issuecomment-24954736 .

csssuf commented 11 years ago

No, decorators are better.

pefoley2 commented 11 years ago

if we did args, it'd be a msgtype one, but this can wait till @fwilson42 finishes decorators.