Changeset 113
- Timestamp:
- 10/14/07 16:31:13 (1 year ago)
- Files:
-
- randomchat/randomchat.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
randomchat/randomchat.py
r97 r113 12 12 if not self.con.auth(jid, pwd): 13 13 raise Exception('Unable to authenticate as %s' % (jid)) 14 15 self.con.RegisterHandler('presence', self.presence_handler) 16 14 17 15 18 while 1: 16 19 self.con.Process(10) 17 20 21 def presence_handler(self, con, prs): 22 print '***********************************************************' 23 print prs.getFrom() 24 print '***********************************************************' 18 25 19 26 rc = RandomChat(config.JID, config.PASS, config.SERVER, config.PORT)
