Changeset 08a355b
- Timestamp:
- 2008-12-21T19:37:59Z (16 years ago)
- Branches:
- master
- Children:
- 5acf9ab
- Parents:
- 7258d34
- Location:
- skype
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/README
r7258d34 r08a355b 343 343 * `account set skype/balance query` 344 344 345 - For debug purposes, it's possible to send any command to `skyped`. To 346 achieve this, you need to: 347 348 * `account set skype/skypeconsole true` 349 350 * then writing `skypeconsole: <command>` will work in the control 351 channel. 352 345 353 == What needs to be done (aka. TODO) 346 354 -
skype/skype.c
r7258d34 r08a355b 959 959 960 960 sd->ic = ic; 961 962 if (set_getbool(&acc->set, "skypeconsole")) 963 imcb_add_buddy(ic, "skypeconsole", NULL); 961 964 } 962 965 … … 986 989 *ptr = '\0'; 987 990 988 buf = g_strdup_printf("MESSAGE %s %s\n", nick, message); 991 if (!strncmp(who, "skypeconsole", 12)) 992 buf = g_strdup_printf("%s\n", message); 993 else 994 buf = g_strdup_printf("MESSAGE %s %s\n", nick, message); 989 995 g_free(nick); 990 996 st = skype_write( ic, buf, strlen( buf ) ); … … 1265 1271 1266 1272 s = set_add( &acc->set, "skypeout_offline", "true", set_eval_bool, acc ); 1273 1274 s = set_add( &acc->set, "skypeconsole", "false", set_eval_bool, acc ); 1275 s->flags |= ACC_SET_OFFLINE_ONLY; 1267 1276 } 1268 1277
Note: See TracChangeset
for help on using the changeset viewer.