Ignore:
Timestamp:
2012-11-25T20:43:52Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
67f6828
Parents:
3592b95
Message:

Use hex for show_ids, but stick to the 2-char maximum. a 256-message backlog
really should be enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r3592b95 rf97b8e9  
    558558        guint64 id = 0;
    559559        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) {
    561561                if (id < TWITTER_LOG_LENGTH && td->log)
    562562                        id = td->log[id].id;
     
    564564                (tud = bu->data) && tud->last_id)
    565565                id = tud->last_id;
    566         else if (sscanf(arg, "%" G_GUINT64_FORMAT, &id) == 1){
     566        else if (sscanf(arg, "%" G_GINT64_MODIFIER "x", &id) == 1){
    567567                if (id < TWITTER_LOG_LENGTH && td->log)
    568568                        id = td->log[id].id;
Note: See TracChangeset for help on using the changeset viewer.