aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nick.c2
-rw-r--r--protocols/twitter/twitter.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/nick.c b/nick.c
index 2c3f9a66..9254031b 100644
--- a/nick.c
+++ b/nick.c
@@ -404,7 +404,7 @@ int nick_lc( irc_t *irc, char *nick )
gchar *down = g_utf8_strdown( nick, -1 );
if( strlen( down ) > strlen( nick ) )
{
- truncate_utf8( down, strlen(nick) );
+ truncate_utf8( down, strlen( nick ) );
}
strcpy( nick, down );
g_free( down );
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 8e3fec77..d2aafcb4 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -50,7 +50,7 @@ static void twitter_main_loop_start(struct im_connection *ic)
{
struct twitter_data *td = ic->proto_data;
- char *last_tweet = set_getstr(&ic->acc->set, "last_tweet");
+ char *last_tweet = set_getstr(&ic->acc->set, "_last_tweet");
if (last_tweet)
td->timeline_id = g_ascii_strtoull(last_tweet, NULL, 0);
@@ -330,8 +330,8 @@ static void twitter_init(account_t * acc)
s = set_add(&acc->set, "strip_newlines", "false", set_eval_bool, acc);
- s = set_add(&acc->set, "last_tweet", "0", NULL, acc);
- s->flags |= SET_HIDDEN;
+ s = set_add(&acc->set, "_last_tweet", "0", NULL, acc);
+ s->flags |= SET_HIDDEN | SET_NOSAVE;
if (strcmp(acc->prpl->name, "twitter") == 0) {
s = set_add(&acc->set, "stream", "true", set_eval_bool, acc);