- 622DC40643FD936B33DF0F60BAC3167453DD1684021504C1D7201E07AEA2140B17C4D857CC106DDD6DF9963A8003E84D938696796C5D2001DE2B68DBE5533F23
+ 39920C295FDAF1BB2B6A76564DA9B8DC1770BA9FED4C145B72854432F302D919C9EA611485E0DE01EB544EBA1052471133C509AB8C4CC61C12E6C7EC83EA2B8D
blatta/lib/client.py
(485 . 8)(485 . 11)
107
108 def peer_handler():
109 if len(arguments) == 1:
110 self.server.state.add_peer(arguments[0])
111 self.pest_reply("added new peer %s" % arguments[0])
112 try:
113 self.server.state.add_peer(arguments[0])
114 self.pest_reply("added new peer %s" % arguments[0])
115 except:
116 self.pest_reply("error attempting to add peer %s" % arguments[0])
117 else:
118 self.pest_reply("Usage: PEER <HANDLE>")
119
(538 . 7)(541 . 8)
121 address_ip, port = string.split(address, ":")
122 self.server.state.update_address_table({"handle": handle,
123 "address": address_ip,
124 "port": port})
125 "port": port},
126 False)
127 self.pest_reply("updated address table: %s %s" % (handle, address))
128 return
129 elif len(arguments) > 2:
(548 . 7)(552 . 7)
131 for address in at:
132 self.pest_reply("%s %s %s" % (address["handle"],
133 address["address"],
134 address["updated_at"]))
135 address["active_at"]))
136 else:
137 self.pest_reply("no results")
138