# HG changeset patch # User Eric Warmenhoven # Date 1000837041 0 # Node ID 0371b905baefa2fb0105948ea3d12fe79e8ac28d # Parent 15fb364935ec17473a331b49d4428eab969a390f [gaim-migrate @ 2315] hi committer: Tailor Script diff -r 15fb364935ec -r 0371b905baef src/protocols/irc/irc.c --- a/src/protocols/irc/irc.c Tue Sep 18 01:46:56 2001 +0000 +++ b/src/protocols/irc/irc.c Tue Sep 18 18:17:21 2001 +0000 @@ -1135,6 +1135,7 @@ return -EINVAL; g_snprintf(buf, sizeof(buf), "PRIVMSG %s :%s\r\n", who, word_eol[2]); irc_write(id->fd, buf, strlen(buf)); + return 1; } else if (!g_strcasecmp(pdibuf, "MSG")) { if (!*word[2]) return -EINVAL; @@ -1189,9 +1190,20 @@ write_to_conv(c, "Currently supported commands:
" "JOIN PART TOPIC
" "OP DEOP VOICE DEVOICE KICK
" - "NICK ME MSG QUOTE SAY

", + "NICK ME MSG QUOTE SAY", WFLAG_SYSTEM, NULL, time(NULL)); + } else { + struct conversation *c = NULL; + if (is_channel(gc, who)) { + c = irc_find_chat(gc, who); + } else { + c = find_conversation(who); + } + if (!c) + return -EINVAL; + write_to_conv(c, "Unsupported command", WFLAG_SYSTEM, NULL, time(NULL)); } + return 0; } diff -r 15fb364935ec -r 0371b905baef src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Tue Sep 18 01:46:56 2001 +0000 +++ b/src/protocols/oscar/oscar.c Tue Sep 18 18:17:21 2001 +0000 @@ -1123,6 +1123,7 @@ time_t time_idle; int type = 0; struct gaim_connection *gc = sess->aux_data; + char *tmp; va_list ap; va_start(ap, fr); @@ -1146,6 +1147,11 @@ } else time_idle = 0; + tmp = g_strdup(normalize(gc->username)); + if (!strcmp(tmp, normalize(info->sn))) + g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", info->sn); + g_free(tmp); + serv_got_update(gc, info->sn, 1, info->warnlevel/10, info->onlinesince, time_idle, type, info->capabilities); diff -r 15fb364935ec -r 0371b905baef src/protocols/toc/toc.c --- a/src/protocols/toc/toc.c Tue Sep 18 01:46:56 2001 +0000 +++ b/src/protocols/toc/toc.c Tue Sep 18 18:17:21 2001 +0000 @@ -444,7 +444,7 @@ serv_got_im(gc, c, message, a, time((time_t)NULL)); } else if (!strcasecmp(c, "UPDATE_BUDDY")) { - char *l, *uc; + char *l, *uc, *tmp; int logged, evil, idle, type = 0; time_t signon, time_idle; @@ -481,6 +481,11 @@ } else time_idle = 0; + tmp = g_strdup(normalize(gc->username)); + if (!strcmp(tmp, normalize(c))) + g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", c); + g_free(tmp); + serv_got_update(gc, c, logged, evil, signon, time_idle, type, 0); } else if (!strcasecmp(c, "ERROR")) { c = strtok(NULL, ":");