Changes in protocols/jabber/jabber_util.c [6a0cb16:72721cd]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber_util.c
r6a0cb16 r72721cd 306 306 imcb_ask( ic, buf, bla, jabber_buddy_ask_yes, jabber_buddy_ask_no ); 307 307 g_free( buf ); 308 } 309 310 /* Compares just the bare portions of two Jabber IDs. */ 311 int jabber_compare_jid( const char *jid1, const char *jid2 ) 312 { 313 int i; 314 315 for( i = 0; ; i ++ ) 316 { 317 if( jid1[i] == '\0' || jid1[i] == '/' || jid2[i] == '\0' || jid2[i] == '/' ) 318 { 319 if( ( jid1[i] == '\0' || jid1[i] == '/' ) && ( jid2[i] == '\0' || jid2[i] == '/' ) ) 320 break; 321 return FALSE; 322 } 323 if( tolower( jid1[i] ) != tolower( jid2[i] ) ) 324 { 325 return FALSE; 326 } 327 } 328 329 return TRUE; 308 330 } 309 331
Note: See TracChangeset
for help on using the changeset viewer.