summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-30 16:18:56 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-30 16:18:56 +0100
commita17c2faa9cf3ba50d4d1155870116e09e4cae3e1 (patch)
tree2f789df71d917229176debb31ab351fff698329e
parenta94f91a8b8a09910198eed8ab4407bc0c9ef66eb (diff)
downloadmanamarket-a17c2faa9cf3ba50d4d1155870116e09e4cae3e1.tar.gz
manamarket-a17c2faa9cf3ba50d4d1155870116e09e4cae3e1.tar.bz2
manamarket-a17c2faa9cf3ba50d4d1155870116e09e4cae3e1.tar.xz
manamarket-a17c2faa9cf3ba50d4d1155870116e09e4cae3e1.zip
Respond "No" to incoming trade requests.
-rwxr-xr-xmain.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.py b/main.py
index a43baad..ec4c3d0 100755
--- a/main.py
+++ b/main.py
@@ -801,6 +801,7 @@ def main():
elif packet.is_type(SMSG_TRADE_REQUEST):
name = packet.read_string(24)
logging.info("Trade request: " + name)
+ mapserv.sendall(trade_respond(False))
elif packet.is_type(SMSG_TRADE_RESPONSE):
response = packet.read_int8()