# HG changeset patch # User Eric Warmenhoven # Date 992719368 0 # Node ID 64a07b9e9202ece3d846c155df3ad6b926253bf6 # Parent 859e9c2c5813cc519b3341e6d7a8b95f8cad01b5 [gaim-migrate @ 2050] don't send messages to yourself committer: Tailor Script diff -r 859e9c2c5813 -r 64a07b9e9202 plugins/msn/msn.c --- a/plugins/msn/msn.c Sat Jun 16 19:16:25 2001 +0000 +++ b/plugins/msn/msn.c Sat Jun 16 19:22:48 2001 +0000 @@ -1135,7 +1135,7 @@ if (msn_write(ms->fd, buf, strlen(buf)) < 0) msn_kill_switch(ms); debug_printf("\n"); - } else { + } else if (strcmp(who, gc->username)) { g_snprintf(buf, MSN_BUF_LEN, "XFR %d SB\n", ++md->trId); if (msn_write(md->fd, buf, strlen(buf)) < 0) { hide_login_progress(gc, "Write error"); @@ -1149,7 +1149,8 @@ ms->txqueue = g_strdup(message); ms->gc = gc; ms->fd = -1; - } + } else + do_error_dialog("MSN: You can't send a message to yourself", "MSN Error"); } static void msn_chat_send(struct gaim_connection *gc, int id, char *message)