changeset 518:091d081a269d

[gaim-migrate @ 528] bleh. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 21 Jul 2000 19:40:35 +0000
parents dd4d415dbe52
children 926ba0807a2d
files src/server.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/server.c	Fri Jul 21 18:22:01 2000 +0000
+++ b/src/server.c	Fri Jul 21 19:40:35 2000 +0000
@@ -158,7 +158,15 @@
 void serv_send_im(char *name, char *message, int away)
 {
 	struct conversation *cnv = find_conversation(name);
-	if (!cnv || !cnv->is_direct) {
+	if (cnv && cnv->is_direct) {
+		if (!USE_OSCAR) {
+			/* FIXME */
+		} else {
+			sprintf(debug_buff, "Sending DirectIM to %s\n", name);
+			debug_print(debug_buff);
+			aim_send_im_direct(gaim_sess, cnv->conn, message);
+		}
+	} else {
 		if (!USE_OSCAR) {
 			char buf[MSG_LEN - 7];
 
@@ -171,14 +179,6 @@
 			else
 				aim_send_im(gaim_sess, gaim_conn, name, AIM_IMFLAGS_ACK, message);
 		}
-	} else {
-		if (!USE_OSCAR) {
-			/* FIXME */
-		} else {
-			sprintf(debug_buff, "Sending DirectIM to %s\n", name);
-			debug_print(debug_buff);
-			aim_send_im_direct(gaim_sess, cnv->conn, message);
-		}
 	}
         if (!away)
                 serv_touch_idle();