Changeset 2397
- Timestamp:
- 07/19/05 15:59:26 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/common/helpers.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/helpers.py
r2396 r2397 64 64 def get_nick_from_fjid(jid): 65 65 # fake jid is the jid for a contact in a room 66 # gaim@conference.jabber.org/nick 67 pos = jid.rfind('/') + 1 # 1 means after / 68 return jid[pos:] 66 # gaim@conference.jabber.org/nick/nick-continued 67 return jid.split('/', 1)[1] 69 68 70 69 def get_resource_from_jid(jid): 71 pos = jid.rfind('/') + 1 # 1 means after / 72 return jid[pos:] 70 return jid.split('/', 1)[1] # abc@doremi.org/res/res-continued 73 71 74 72 def to_one_line(msg):
