src/protocols/zephyr/zephyr.c

changeset 4682
51dd0dd66ae0
parent 4588
1e072545c53d
child 4687
91ad36873636
equal deleted inserted replaced
4681:c69f37dbb191 4682:51dd0dd66ae0
385 serv_got_joined_chat(zgc, zt2->id, zt2->name); 385 serv_got_joined_chat(zgc, zt2->id, zt2->name);
386 } 386 }
387 /* If the person is in the default Realm, then strip the 387 /* If the person is in the default Realm, then strip the
388 Realm from the sender field */ 388 Realm from the sender field */
389 sendertmp = g_strdup_printf("%s",notice.z_sender); 389 sendertmp = g_strdup_printf("%s",notice.z_sender);
390 if (realmptr = strchr(sendertmp,'@')) { 390 if ((realmptr = strchr(sendertmp,'@')) != NULL) {
391 realmptr++; 391 realmptr++;
392 if (!g_strcasecmp(realmptr,ZGetRealm())) { 392 if (!g_strcasecmp(realmptr,ZGetRealm())) {
393 realmptr--; 393 realmptr--;
394 sprintf(realmptr,"%c",'\0'); 394 sprintf(realmptr,"%c",'\0');
395 send_inst = g_strdup_printf("%s %s",sendertmp, 395 send_inst = g_strdup_printf("%s %s",sendertmp,

mercurial