diff options
| -rw-r--r-- | protocols/twitter/twitter.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 7cf8a239..fcbc88d7 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -491,9 +491,9 @@ static void twitter_handle_command(struct im_connection *ic, char *message)  		guint64 id;  		if (g_str_has_prefix(cmd[1], "#")) { -		    id = g_ascii_strtoull(cmd[1] + 1, NULL, 10); -		    if (id < TWITTER_LOG_LENGTH && td->log) -			id = td->log[id].id; +			id = g_ascii_strtoull(cmd[1] + 1, NULL, 10); +			if (id < TWITTER_LOG_LENGTH && td->log) +				id = td->log[id].id;  		} else if ((bu = bee_user_by_handle(ic->bee, ic, cmd[1])) &&  		    (tud = bu->data) && tud->last_id)  			id = tud->last_id; | 
