diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-05 15:09:51 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-05 15:09:51 +0100 |
commit | 837dc4bb388cc74a9ac4efcfd4a2726e27078a8f (patch) | |
tree | 8ff3595c6cf174f4dc06eadf0d26cb171ce5e4ab | |
parent | 618146825663cb46a2fb17ed8874740bf7654de5 (diff) | |
download | manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.gz manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.bz2 manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.tar.xz manamarket-837dc4bb388cc74a9ac4efcfd4a2726e27078a8f.zip |
Stop people from buying there own items.
-rwxr-xr-x | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |