Changeset fbb15f2
- Timestamp:
- 2011-01-02T02:41:04Z (14 years ago)
- Branches:
- master
- Children:
- cb6d3c9
- Parents:
- 54ca269
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r54ca269 rfbb15f2 762 762 } 763 763 764 static struct skype_group *skype_group_by_id(struct im_connection *ic, int id) { 764 static struct skype_group *skype_group_by_id(struct im_connection *ic, int id) 765 { 765 766 struct skype_data *sd = ic->proto_data; 766 767 int i; … … 775 776 } 776 777 777 static void skype_group_free(struct skype_group* sg, gboolean usersonly) { 778 static void skype_group_free(struct skype_group *sg, gboolean usersonly) 779 { 778 780 int i; 779 781 780 782 for (i = 0; i < g_list_length(sg->users); i++) { 781 783 char *user = g_list_nth_data(sg->users, i); … … 790 792 791 793 /* Update the group of each user in this group */ 792 static void skype_group_users(struct im_connection *ic, struct skype_group *sg) { 794 static void skype_group_users(struct im_connection *ic, struct skype_group *sg) 795 { 793 796 int i; 794 797 … … 847 850 skype_group_users(ic, sg); 848 851 } else 849 log_message(LOGLVL_ERROR, "No skype group with id %s. That's probably a bug.", id); 852 log_message(LOGLVL_ERROR, 853 "No skype group with id %s. That's probably a bug.", id); 850 854 } 851 855 } … … 1220 1224 } 1221 1225 1222 static void skype_call(struct im_connection *ic, char *value) { 1226 static void skype_call(struct im_connection *ic, char *value) 1227 { 1223 1228 char *nick = g_strdup(value); 1224 1229 char *ptr = strchr(nick, '@'); … … 1248 1253 struct im_connection *ic = acc->ic; 1249 1254 1250 if (value) {1255 if (value) 1251 1256 skype_call(ic, value); 1252 }else1257 else 1253 1258 skype_hangup(ic); 1254 1259 return value; … … 1416 1421 1417 1422 #if BITLBEE_VERSION_CODE >= BITLBEE_VER(3, 0, 1) 1418 GList *skype_buddy_action_list( bee_user_t *bu ) 1419 { 1420 static GList *ret = NULL; 1421 1422 if (ret == NULL) 1423 { 1423 GList *skype_buddy_action_list(bee_user_t *bu) 1424 { 1425 static GList *ret; 1426 1427 if (ret == NULL) { 1424 1428 static const struct buddy_action ba[3] = { 1425 1429 {"CALL", "Initiate a call" }, … … 1427 1431 }; 1428 1432 1429 ret = g_list_prepend(ret, (void *) ba + 0);1433 ret = g_list_prepend(ret, (void *) ba + 0); 1430 1434 } 1431 1435 … … 1433 1437 } 1434 1438 1435 void *skype_buddy_action( struct bee_user *bu, const char *action, char * const args[], void *data)1436 { 1437 if (!g_strcasecmp(action, "CALL")) {1439 void *skype_buddy_action(struct bee_user *bu, const char *action, char * const args[], void *data) 1440 { 1441 if (!g_strcasecmp(action, "CALL")) 1438 1442 skype_call(bu->ic, bu->handle); 1439 } else if (!g_strcasecmp(action, "HANGUP")) {1443 else if (!g_strcasecmp(action, "HANGUP")) 1440 1444 skype_hangup(bu->ic); 1441 }1442 1445 1443 1446 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.