summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-09-03 23:18:51 -0500
committerwushin <pasekei@gmail.com>2015-09-03 23:18:51 -0500
commit0305a818fad23684a728208ec21a885a66f91445 (patch)
treea3e034312880430d90c3547d3f70be171e40eafd
parent7e4ac71c32fc041addde6ac2b3abe3330ac3557c (diff)
downloadmanamarket-0305a818fad23684a728208ec21a885a66f91445.tar.gz
manamarket-0305a818fad23684a728208ec21a885a66f91445.tar.bz2
manamarket-0305a818fad23684a728208ec21a885a66f91445.tar.xz
manamarket-0305a818fad23684a728208ec21a885a66f91445.zip
Add permissions to use !mail command
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index a8e5c45..c7c8171 100755
--- a/main.py
+++ b/main.py
@@ -653,6 +653,8 @@ def process_whisper(nick, msg, mapserv):
ls_info = db_manager.get_lastseen_info(who)
mapserv.sendall(whisper(nick, ls_info))
elif broken_string[0] == "!mail":
+ if user == -10:
+ mapserv.sendall(whisper(nick, "Your current access level is 0. Request access in [@@https://forums.themanaworld.org/viewtopic.php?f=14&t=14010|ManaMarket's forum thread@@]"))
to_, msg_ = utils.parse_mail_cmdargs(msg[6:].strip())
if to_ == "" or msg_ == "":
mapserv.sendall(whisper(nick, "Usage: !mail <nick> <message> OR !mail \"nick with spaces\" <message>"))