Changeset f97b8e9
- Timestamp:
- 2012-11-25T20:43:52Z (12 years ago)
- Branches:
- master
- Children:
- 67f6828
- Parents:
- 3592b95
- Location:
- protocols/twitter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
r3592b95 rf97b8e9 558 558 guint64 id = 0; 559 559 if (g_str_has_prefix(arg, "#") && 560 sscanf(arg + 1, "%" G_GUINT64_FORMAT, &id) == 1) {560 sscanf(arg + 1, "%" G_GINT64_MODIFIER "x", &id) == 1) { 561 561 if (id < TWITTER_LOG_LENGTH && td->log) 562 562 id = td->log[id].id; … … 564 564 (tud = bu->data) && tud->last_id) 565 565 id = tud->last_id; 566 else if (sscanf(arg, "%" G_G UINT64_FORMAT, &id) == 1){566 else if (sscanf(arg, "%" G_GINT64_MODIFIER "x", &id) == 1){ 567 567 if (id < TWITTER_LOG_LENGTH && td->log) 568 568 id = td->log[id].id; -
protocols/twitter/twitter.h
r3592b95 rf97b8e9 85 85 }; 86 86 87 #define TWITTER_LOG_LENGTH 10087 #define TWITTER_LOG_LENGTH 256 88 88 struct twitter_log_data 89 89 { -
protocols/twitter/twitter_lib.c
r3592b95 rf97b8e9 644 644 if (set_getbool(&ic->acc->set, "show_ids")) { 645 645 if (reply_to != -1) 646 return g_strdup_printf("\002[\002%02 d->%02d\002]\002 %s%s",646 return g_strdup_printf("\002[\002%02x->%02x\002]\002 %s%s", 647 647 td->log_id, reply_to, prefix, txs->text); 648 648 else 649 return g_strdup_printf("\002[\002%02 d\002]\002 %s%s",649 return g_strdup_printf("\002[\002%02x\002]\002 %s%s", 650 650 td->log_id, prefix, txs->text); 651 651 } else {
Note: See TracChangeset
for help on using the changeset viewer.