Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 2123:56c4382f2909
[gaim-migrate @ 2133]
now has the ability to notify you beforehand that messages are too long. I haven't tested this yet though.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 06 Aug 2001 17:50:46 +0000 |
parents | 0ad5f2cf6728 |
children | acc11216ec5d |
comparison
equal
deleted
inserted
replaced
2122:c99c781e5931 | 2123:56c4382f2909 |
---|---|
1213 jd->jc = NULL; | 1213 jd->jc = NULL; |
1214 g_free(jd); | 1214 g_free(jd); |
1215 gc->proto_data = NULL; | 1215 gc->proto_data = NULL; |
1216 } | 1216 } |
1217 | 1217 |
1218 static void jabber_send_im(struct gaim_connection *gc, char *who, char *message, int away) | 1218 static int jabber_send_im(struct gaim_connection *gc, char *who, char *message, int away) |
1219 { | 1219 { |
1220 xmlnode x, y; | 1220 xmlnode x, y; |
1221 char *realwho; | 1221 char *realwho; |
1222 gjconn j = ((struct jabber_data *)gc->proto_data)->jc; | 1222 gjconn j = ((struct jabber_data *)gc->proto_data)->jc; |
1223 | 1223 |
1224 if (!who || !message) | 1224 if (!who || !message) |
1225 return; | 1225 return 0; |
1226 | 1226 |
1227 x = xmlnode_new_tag("message"); | 1227 x = xmlnode_new_tag("message"); |
1228 if (!strchr(who, '@')) | 1228 if (!strchr(who, '@')) |
1229 realwho = g_strdup_printf("%s@%s", who, j->user->server); | 1229 realwho = g_strdup_printf("%s@%s", who, j->user->server); |
1230 else | 1230 else |
1241 g_free(utf8); | 1241 g_free(utf8); |
1242 } | 1242 } |
1243 | 1243 |
1244 gjab_send(((struct jabber_data *)gc->proto_data)->jc, x); | 1244 gjab_send(((struct jabber_data *)gc->proto_data)->jc, x); |
1245 xmlnode_free(x); | 1245 xmlnode_free(x); |
1246 return 0; | |
1246 } | 1247 } |
1247 | 1248 |
1248 static void jabber_add_buddy(struct gaim_connection *gc, char *name) | 1249 static void jabber_add_buddy(struct gaim_connection *gc, char *name) |
1249 { | 1250 { |
1250 xmlnode x, y; | 1251 xmlnode x, y; |