- Timestamp:
- 2010-08-03T11:12:59Z (14 years ago)
- Branches:
- master
- Children:
- 3adc247
- Parents:
- 8fcb196
- git-author:
- Wilmer van der Gaast <wilmer@…> (03-08-10 11:12:59)
- git-committer:
- Miklos Vajna <vmiklos@…> (03-08-10 11:12:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r8fcb196 r78d22cd0 30 30 #define IRC_LINE_SIZE 1024 31 31 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) 32 33 /* 34 * Compatibility with BitlBee 1.3+ 35 */ 36 #ifndef GAIM_INPUT_READ 37 #define GAIM_INPUT_READ B_EV_IO_READ 38 #endif 32 39 33 40 /* … … 235 242 struct groupchat *skype_chat_by_name(struct im_connection *ic, char *name) 236 243 { 244 #if BITLBEE_VERSION_CODE < BITLBEE_VER(1, 3, 0) 237 245 struct groupchat *ret; 238 246 … … 242 250 243 251 return ret; 252 #else 253 return bee_chat_by_title(ic->bee, ic, name); 254 #endif 244 255 } 245 256 … … 326 337 g_free(buf); 327 338 } 328 } else if (!strncmp(ptr, "MOOD_TEXT ", 10) && set_getbool(&ic->acc->set, "show_moods")) {339 } else if (!strncmp(ptr, "MOOD_TEXT ", 10)) { 329 340 char *buf = g_strdup_printf("%s@skype.com", user); 341 #if BITLBEE_VERSION_CODE < BITLBEE_VER(1, 3, 0) 330 342 user_t *u = user_findhandle(ic, buf); 331 343 g_free(buf); … … 339 351 u->status_msg = NULL; 340 352 } 341 imcb_log(ic, "User `%s' changed mood text to `%s'", user, buf); 353 #else 354 bee_user_t *bu = bee_user_by_handle(ic->bee, ic, buf); 355 g_free(buf); 356 buf = ptr + 10; 357 if (bu) { 358 imcb_buddy_status(ic, bu->handle, bu->flags, NULL, 359 *buf ? buf : NULL); 360 } 361 #endif 362 if (set_getbool(&ic->acc->set, "show_moods")) 363 imcb_log(ic, "User `%s' changed mood text to `%s'", user, buf); 342 364 } else if (!strncmp(ptr, "FULLNAME ", 9)) 343 365 sd->info_fullname = g_strdup(ptr + 9); … … 1085 1107 1086 1108 if (value) { 1109 #if BITLBEE_VERSION_CODE < BITLBEE_VER(1, 3, 0) 1110 /* IRC stuff shouldn't be touched from inside IM modules. */ 1087 1111 user_t *u = user_find(acc->irc, value); 1088 1112 /* We are starting a call */ 1089 if (!u) 1113 if (u) 1114 nick = g_strdup(u->handle); 1115 else 1116 #endif 1090 1117 nick = g_strdup(value); 1091 else1092 nick = g_strdup(u->handle);1093 1118 ptr = strchr(nick, '@'); 1094 1119 if (ptr)
Note: See TracChangeset
for help on using the changeset viewer.