diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-05-27 21:45:23 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-05-27 21:45:23 +0000 |
commit | 594699e711200eba92bc9fe7a0bedd39270b2768 (patch) | |
tree | 846b64860aa353214d9fcbe41f6a421f34d12327 /proxy.py | |
parent | fd19c29d708e95ccddfcff83d4206bc5bfdb82ee (diff) | |
download | omegle-594699e711200eba92bc9fe7a0bedd39270b2768.tar.gz omegle-594699e711200eba92bc9fe7a0bedd39270b2768.zip |
blah
git-svn-id: http://xapek.org/svn/common/omegle@1018 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'proxy.py')
-rw-r--r-- | proxy.py | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,5 @@ from omegle import OmegleChat -import sys +import sys, logging class OmegleProxyChat(OmegleChat): @@ -11,17 +11,22 @@ class OmegleProxyChat(OmegleChat): self.partner = partner def on_message(self,message): - print "%s: %s" %(self.name, message) + print "[MSG] %s: %s" %(self.name, message) self.partner.send(message) def on_connect(self): - print "%s Connected" % self.name + print "[EVT] %s Connection confirmed" % self.name def on_typing(self): - print "%s is typing" % self.name + print "[EVT] %s is typing" % self.name self.partner.typing() + def on_stopped_typing(self): + print "[EVT] %s stopped typing" % self.name + self.partner.stopped_typing() def on_disconnect(self): - print "%s disconnect" % self.name + print "[EVT] %s disconnect" % self.name self.partner.disconnect() +logging.basicConfig(level=logging.DEBUG) + A=OmegleProxyChat("A") B=OmegleProxyChat("B") |