mirror of https://github.com/hak5/ToorChat.git
Ops im a tard
parent
b968057eb4
commit
bc9bd02c91
|
@ -31,10 +31,12 @@ def thread_run(visual):
|
||||||
if toor_message.type == ToorChatProtocol.get_web_request_type():
|
if toor_message.type == ToorChatProtocol.get_web_request_type():
|
||||||
#If we are registered as a server, lets type to make that request
|
#If we are registered as a server, lets type to make that request
|
||||||
if visual.server:
|
if visual.server:
|
||||||
|
visual.request_xid = toor_message.request_xid
|
||||||
ToorChatProtocol.get_web_messages(toor_message.data, visual)
|
ToorChatProtocol.get_web_messages(toor_message.data, visual)
|
||||||
if toor_message.type == ToorChatProtocol.get_web_response_type():
|
if toor_message.type == ToorChatProtocol.get_web_response_type():
|
||||||
# lets see if its the response were looking for
|
# lets see if its the response were looking for
|
||||||
if toor_message.xid == visual.request_xid:
|
if toor_message.xid == visual.request_xid:
|
||||||
|
print "here!"
|
||||||
find_message_in_website(toor_message, visual)
|
find_message_in_website(toor_message, visual)
|
||||||
if len(visual.website_buffer) == toor_message.last:
|
if len(visual.website_buffer) == toor_message.last:
|
||||||
#sort messages
|
#sort messages
|
||||||
|
@ -117,6 +119,7 @@ class Visualizer():
|
||||||
user_input = self.screen.getstr(1, 1, 60)
|
user_input = self.screen.getstr(1, 1, 60)
|
||||||
self.request_xid = ToorMessage.get_random_xid()
|
self.request_xid = ToorMessage.get_random_xid()
|
||||||
request = self.protocol.send_web_request(user_input, self.request_xid)
|
request = self.protocol.send_web_request(user_input, self.request_xid)
|
||||||
|
print self.request_xid
|
||||||
self.screen.nodelay(1)
|
self.screen.nodelay(1)
|
||||||
self.screen.addstr(1,1," "*(self.screen_max_x-3))
|
self.screen.addstr(1,1," "*(self.screen_max_x-3))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue