- EAC411466552678C425D22B90318AD903BCAD61213F50DDC38A35DD9DB76C771414F6E63E4DF35282FEF40C3C0B12177B8856DC41BE4887307AB871080FC9E3B+ 2E8BADABCB9694CAC1263BE7CC37E5DDEE7E2719520E6A8CA50BEE27F1AC28508C38FCF217056E37FC552E74987B4134B3C43D9B96A7D53E0AD0AA214827D6E1blatta/lib/client.py(437 . 7)(437 . 7)
5 if peer:
6 self.pest_reply("keys:")
7 for key in peer.keys:
8 self.pest_reply("%s" % key)
9 self.pest_reply("'%s'" % key)
10 else:
11 self.pest_reply("unknown peer: %s" % handle)
12
(450 . 8)(450 . 11)
14 self.state.add_peer(arguments[0])
15 self.pest_reply("added new peer %s" % arguments[0])
16 self.message(":%s JOIN %s" % (arguments[0], self.server.channel_name))
17 except:
18 except Exception, ex:
19 self.pest_reply("error attempting to add peer %s" % arguments[0])
20 stack = traceback.format_exc()
21 logging.debug(ex)
22 logging.debug(stack)
23 else:
24 self.pest_reply("Usage: PEER <HANDLE>")
25
(461 . 9)(464 . 10)
27 self.state.remove_peer(arguments[0])
28 self.pest_reply("removed peer %s" % arguments[0])
29 self.message(":%s PART %s" % (arguments[0], self.server.channel_name))
30 except Exception, e:
31 logging.debug(e)
32 self.pest_reply("Error attempting to remove peer")
33 except Exception, ex:
34 self.pest_reply("Error attempting to remove peer: %s" % ex)
35 stack = traceback.format_exc()
36 logging.debug(stack)
37 else:
38 self.pest_reply("Usage: UNPEER <HANDLE>")
39
(503 . 13)(507 . 14)
41 try:
42 handle, address = arguments
43 address_ip, port = string.split(address, ":")
44 self.state.update_at({"handle": handle,
45 "address": address_ip,
46 "port": port},
47 False)
48 self.state.update_at(
49 {"handle": handle,
50 "address": address_ip,
51 "port": int(port)},
52 False)
53 self.pest_reply("updated address table: %s %s" % (handle, address))
54 except Exception as ex:
55 self.pest_reply("Error attempting to update address table")
56 self.pest_reply("Error attempting to update address table: %s" % ex)
57 stack = traceback.format_exc()
58 logging.debug(stack)
59 return