Changeset 109
- Timestamp:
- 21/10/08 14:02:30 (3 months ago)
- Files:
-
- 1 modified
-
jggtrans/src/users.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jggtrans/src/users.c
r80 r109 307 307 308 308 uin=ujid=name=password=email=NULL; 309 if(!strchr(jid,'@')) return NULL; 309 310 debug(L_("Loading user '%s'"),jid); 310 311 fn=jid_normalized(jid,0); … … 459 460 Contact *c; 460 461 461 g_message(L_("Destroying user '%s'"),u->jid);462 debug(L_("Destroying user '%s'"),u->jid); 462 463 463 464 g_assert(u!=NULL); … … 614 615 DIR *dir; 615 616 Stream *s; 617 User *u; 616 618 struct dirent *de; 617 619 struct stat st; … … 631 633 continue; 632 634 } 633 if (S_ISREG(st.st_mode) && strchr(de->d_name,'@')) 634 presence_send_probe(s,NULL,de->d_name); 635 if (S_ISREG(st.st_mode) && strchr(de->d_name,'@')){ 636 u=user_get_by_jid(de->d_name); 637 if(u && (u->subscribe==SUB_FROM || u->subscribe==SUB_BOTH)) 638 presence_send_probe(s,NULL,de->d_name); 639 user_free(u); 640 } 635 641 } 636 642 closedir(dir);
