diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-25 20:43:52 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-11-25 20:43:52 +0000 | 
| commit | f97b8e9637acba704e976dff79436a83c0f9c63a (patch) | |
| tree | a7852ec05623e31d62672e942aa5e6c6304ae5c8 /protocols/twitter/twitter.c | |
| parent | 3592b95ac23e243425e20ff9f69f407cb5ec4a74 (diff) | |
Use hex for show_ids, but stick to the 2-char maximum. a 256-message backlog
really should be enough.
Diffstat (limited to 'protocols/twitter/twitter.c')
| -rw-r--r-- | protocols/twitter/twitter.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index ad75c886..fdfc83ec 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -557,13 +557,13 @@ static guint64 twitter_message_id_from_command_arg(struct im_connection *ic, str  	bee_user_t *bu;  	guint64 id = 0;  	if (g_str_has_prefix(arg, "#") && -		sscanf(arg + 1, "%" G_GUINT64_FORMAT, &id) == 1) { +	    sscanf(arg + 1, "%" G_GINT64_MODIFIER "x", &id) == 1) {  		if (id < TWITTER_LOG_LENGTH && td->log)  			id = td->log[id].id;  	} else if ((bu = bee_user_by_handle(ic->bee, ic, arg)) &&  		(tud = bu->data) && tud->last_id)  		id = tud->last_id; -	else if (sscanf(arg, "%" G_GUINT64_FORMAT, &id) == 1){ +	else if (sscanf(arg, "%" G_GINT64_MODIFIER "x", &id) == 1){  		if (id < TWITTER_LOG_LENGTH && td->log)  			id = td->log[id].id;  	}  | 
