summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-09-05 15:09:51 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-09-05 15:09:51 +0100
commit837dc4bb388cc74a9ac4efcfd4a2726e27078a8f (patch)
tree8ff3595c6cf174f4dc06eadf0d26cb171ce5e4ab
parent618146825663cb46a2fb17ed8874740bf7654de5 (diff)
downloadmanamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.gz
manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.bz2
manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.xz
manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.zip
Stop people from buying there own items.
-rwxr-xr-xmain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 7477466..133d7a2 100755
--- a/main.py
+++ b/main.py
@@ -435,6 +435,10 @@ def process_whisper(nick, msg, mapserv):
mapserv.sendall(whisper(nick, "I do not have that many."))
return
+ if item_info.get("name") == nick:
+ mapserv.sendall(whisper(nick, "You can not buy your own items. To get back the item whisper me !getback "+broken_string[2]))
+ return
+
item = Item()
item.get = 0 # 1 = get, 0 = give
item.player = nick