summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordipesh <dipesh@lappy.(none)>2011-09-29 11:09:18 +0100
committerdipesh <dipesh@lappy.(none)>2011-09-29 11:09:18 +0100
commit65dd5bdc27d21d51b2280e97e106fba16c0aed35 (patch)
treec3e63ef7346fd21aeb64e98c219b1756ff4cc62a
parent123f655f070616694a53e151b89541657bb1e92b (diff)
downloadmanamarket-65dd5bdc27d21d51b2280e97e106fba16c0aed35.tar.gz
manamarket-65dd5bdc27d21d51b2280e97e106fba16c0aed35.tar.bz2
manamarket-65dd5bdc27d21d51b2280e97e106fba16c0aed35.tar.xz
manamarket-65dd5bdc27d21d51b2280e97e106fba16c0aed35.zip
teeny bug
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index d2369ef..235337f 100755
--- a/main.py
+++ b/main.py
@@ -995,7 +995,8 @@ def main():
mapserv.sendall(str(PacketOut(CMSG_TRADE_OK)))
else:
mapserv.sendall(str(PacketOut(CMSG_TRADE_CANCEL_REQUEST)))
- mapserv.sendall(whisper(trader_state.item.player, "Trade Cancelled: Please check the traded items or money."))
+ if trader_state.item:
+ mapserv.sendall(whisper(trader_state.item.player, "Trade Cancelled: Please check the traded items or money."))
logging.info("Trade Ok: Partner.")