aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVMiklos <vmiklos@frugalware.org>2007-10-06 22:03:49 +0200
committerVMiklos <vmiklos@frugalware.org>2007-10-06 22:03:49 +0200
commit5a61e43f470068f98ee7b04685376c23b9468974 (patch)
treebbee87abe5278585a7a787b5c013e9e4da417e06
parent66c9558fd9e178ba54a294138effbaca83988920 (diff)
revert "handle topic changes"
- this reverts commit b2d9bfa54753bcf0c617cc515d08f0ac46c1d65e. - the proper way will be to query the type of a CHATMESSAGE object, and if it's SETTOPIC, then do the same
-rw-r--r--skype/skype.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/skype/skype.c b/skype/skype.c
index da7bf09a..d0d6940f 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -70,8 +70,6 @@ struct skype_data
skype_call_status call_status;
/* Same for file transfers. */
skype_filetransfer_status filetransfer_status;
- /* True if the next message will be a topic */
- int topic;
};
struct skype_away_state
@@ -308,13 +306,7 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
if(sd->handle && strlen(info))
{
/* New body, we have everything to use imcb_buddy_msg() now! */
- if(sd->topic)
- {
- imcb_log(ic, "%s has changed the chat topic to \"%s\"", sd->handle, info);
- sd->topic = 0;
- }
- else
- imcb_buddy_msg(ic, sd->handle, info, 0, 0);
+ imcb_buddy_msg(ic, sd->handle, info, 0, 0);
}
}
}
@@ -403,9 +395,7 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
char *info = strchr(id, ' ');
*info = '\0';
info++;
- if(!strncmp(info, "TOPIC ", 6))
- sd->topic = 1;
- else if(!strcmp(info, "STATUS MULTI_SUBSCRIBED"))
+ if(!strcmp(info, "STATUS MULTI_SUBSCRIBED"))
{
struct groupchat *gc;
gc = imcb_chat_new( ic, id );