diff src/server.c @ 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 ee4e18868584
children d9e638d13e5a
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();