| 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, |