changeset 1112:3f56704a09bd

[gaim-migrate @ 1122] You know, PROTOCOL *told* me not to do this, but i did it anyway. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 20 Nov 2000 20:32:17 +0000
parents 870d7bb95fdc
children 4efa1ca61a2a
files src/toc.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/toc.c	Mon Nov 20 19:57:23 2000 +0000
+++ b/src/toc.c	Mon Nov 20 20:32:17 2000 +0000
@@ -47,7 +47,7 @@
 #include "pixmaps/dt_icon.xpm"
 #include "pixmaps/free_icon.xpm"
 
-#define REVISION "gaim:$Revision: 1116 $"
+#define REVISION "gaim:$Revision: 1122 $"
 
 #define TYPE_SIGNON    1
 #define TYPE_DATA      2
@@ -370,7 +370,11 @@
 
 		c = strtok(NULL, ":");
 		away = strtok(NULL, ":");
-		message = strtok(NULL, ":");
+
+		message = away;
+		while (*message && (*message != ':')) message++;
+		message++;
+
 		a = (away && (*away == 'T')) ? 1 : 0;
 
 		serv_got_im(gc, c, message, a);
@@ -434,7 +438,9 @@
 		sscanf(strtok(NULL, ":"), "%d", &id);
 		who = strtok(NULL, ":");
 		whisper = strtok(NULL, ":");
-		m = strtok(NULL, ":");
+		m = whisper;
+		while (*m && (*m != ':')) m++;
+		m++;
 
 		w = (whisper && (*whisper == 'T')) ? 1 : 0;