# HG changeset patch # User Eric Warmenhoven # Date 988445502 0 # Node ID 68eddf56f419b236578cdbf71beff001c5fbc0e2 # Parent 9aae465eeb6e596df25e052c67c29c9096bdb150 [gaim-migrate @ 1779] notes on future UI stuff for PRPLs. also cleaning up rob's mess in server.c. committer: Tailor Script diff -r 9aae465eeb6e -r 68eddf56f419 src/prpl.h --- 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 *); diff -r 9aae465eeb6e -r 68eddf56f419 src/server.c --- 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); }