changeset 1769:68eddf56f419

[gaim-migrate @ 1779] notes on future UI stuff for PRPLs. also cleaning up rob's mess in server.c. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 28 Apr 2001 08:11:42 +0000
parents 9aae465eeb6e
children 7249312f46dc
files src/prpl.h src/server.c
diffstat 2 files changed, 13 insertions(+), 33 deletions(-) [+]
line wrap: on
line diff
--- a/src/prpl.h	Sat Apr 28 02:01:28 2001 +0000
+++ b/src/prpl.h	Sat Apr 28 08:11:42 2001 +0000
@@ -59,6 +59,10 @@
 
 	/* when UI plugins come, these will have to be reconciled by returning
 	 * structs indicating what kinds of information they want displayed. */
+	/* new thought though. instead of UI plugins, just do like X-Chat does;
+	 * have different src- dirs in src: src-common, src-gtk, src-cli, etc.
+	 * then have a prpl-base and prpl-UI stuff. people don't need to change
+	 * their UIs all that often anyway. */
 	void (* buddy_menu)(GtkWidget *, struct gaim_connection *, char *);
 	void (* user_opts)(GtkWidget *, struct aim_user *);
 	void (* draw_new_user)(GtkWidget *);
--- a/src/server.c	Sat Apr 28 02:01:28 2001 +0000
+++ b/src/server.c	Sat Apr 28 08:11:42 2001 +0000
@@ -367,27 +367,19 @@
 			return;
 		}
 		if (cnv != NULL) {
-
+			struct queued_message *qm;
 			if (cnv->makesound && (sound_options & OPT_SOUND_RECV))
 				play_sound(RECEIVE);
-
-			if (gc->away)
-			{
-				struct queued_message *qm;
+			/*
+			qm = (struct queued_message *)g_new0(struct queued_message, 1);
+			snprintf(qm->name, sizeof(qm->name), "%s", name);
+			qm->message = strdup(message);
+			qm->gc = gc;
+			qm->tm = mtime;
 
-				qm = (struct queued_message *)g_new0(struct queued_message, 1);
-				snprintf(qm->name, sizeof(qm->name), "%s", name);
-				qm->message = strdup(message);
-				qm->gc = gc;
-				qm->tm = mtime;
-
-				message_queue = g_slist_append(message_queue, qm);
-
-				printf("A message has been queued.\n");
-			}
-
+			message_queue = g_slist_append(message_queue, qm);
+			*/
 			write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime);
-			
 		}
 
 	} else {
@@ -405,22 +397,6 @@
 			if (cnv->makesound && (sound_options & OPT_SOUND_RECV))
 				play_sound(RECEIVE);
 		}
-		
-		if (gc->away)
-		{
-			struct queued_message *qm;
-
-			qm = (struct queued_message *)g_new0(struct queued_message, 1);
-			snprintf(qm->name, sizeof(qm->name), "%s", name);
-			qm->message = strdup(message);
-			qm->gc = gc;
-			qm->tm = mtime;
-
-			message_queue = g_slist_append(message_queue, qm);
-
-			printf("A message has been queued.\n");
-		}
-
 		write_to_conv(cnv, message, away | WFLAG_RECV, NULL, mtime);
 	}