summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-11-10 22:02:36 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-11-10 22:02:36 +0100
commit02c677f467b398f8b91b1e90544502ff98a6e0da (patch)
tree157ff95ae00d469dafca1393c89814c8e1367cde /src/irc
parent4d6822b1c43d876856a5df07ce69fb4e67c3591a (diff)
downloadirssi-02c677f467b398f8b91b1e90544502ff98a6e0da.zip
use enum
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-servers-setup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c
index 22c86f57..e79557ab 100644
--- a/src/irc/core/irc-servers-setup.c
+++ b/src/irc/core/irc-servers-setup.c
@@ -116,7 +116,7 @@ static void sig_server_setup_fill_chatnet(IRC_SERVER_CONNECT_REC *conn,
static void init_userinfo(void)
{
- int changed;
+ unsigned int changed;
const char *set, *nick, *user_name, *str;
changed = 0;
@@ -126,7 +126,7 @@ static void init_userinfo(void)
str = g_getenv("IRCNAME");
settings_set_str("real_name",
str != NULL ? str : g_get_real_name());
- changed |= 1<<0;
+ changed |= USER_SETTINGS_REAL_NAME;
}
/* username */
@@ -137,7 +137,7 @@ static void init_userinfo(void)
str != NULL ? str : g_get_user_name());
user_name = settings_get_str("user_name");
- changed |= 1<<1;
+ changed |= USER_SETTINGS_USER_NAME;
}
/* nick */
@@ -147,7 +147,7 @@ static void init_userinfo(void)
settings_set_str("nick", str != NULL ? str : user_name);
nick = settings_get_str("nick");
- changed |= 1<<2;
+ changed |= USER_SETTINGS_NICK;
}
/* host name */
@@ -156,11 +156,11 @@ static void init_userinfo(void)
str = g_getenv("IRCHOST");
if (str != NULL) {
settings_set_str("hostname", str);
- changed |= 1<<3;
+ changed |= USER_SETTINGS_HOSTNAME;
}
}
- signal_emit("irssi init userinfo changed", 1, GINT_TO_POINTER(changed));
+ signal_emit("irssi init userinfo changed", 1, GUINT_TO_POINTER(changed));
}
static void sig_server_setup_read(IRC_SERVER_SETUP_REC *rec, CONFIG_NODE *node)