summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-06 23:24:12 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-06 23:24:12 +0000
commit8478a63c368eeea56a7d799dde12e551ab491a4e (patch)
treed1779e9730f15cd08255659dc6ca6526b65b70a9 /src
parentecb334b6cc9b332d589034d10f848d68b5170442 (diff)
downloadirssi-8478a63c368eeea56a7d799dde12e551ab491a4e.zip
/SET default_nick -> /SET nick
/FORMAT own_me -> /FORMAT own_action git-svn-id: http://svn.irssi.org/repos/irssi/trunk@654 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/core/servers-setup.c4
-rw-r--r--src/fe-common/irc/fe-common-irc.c2
-rw-r--r--src/fe-common/irc/fe-events.c2
-rw-r--r--src/fe-common/irc/module-formats.c2
-rw-r--r--src/irc/core/irc-servers-setup.c16
5 files changed, 13 insertions, 13 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 17300930..980c7f2e 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -105,7 +105,7 @@ static void server_setup_fill(SERVER_CONNECT_REC *conn,
conn->address = g_strdup(address);
conn->port = port > 0 ? port : 6667;
- if (!conn->nick) conn->nick = g_strdup(settings_get_str("default_nick"));
+ if (!conn->nick) conn->nick = g_strdup(settings_get_str("nick"));
conn->username = g_strdup(settings_get_str("user_name"));
conn->realname = g_strdup(settings_get_str("real_name"));
@@ -425,7 +425,7 @@ void servers_setup_init(void)
{
settings_add_str("server", "hostname", "");
- settings_add_str("server", "default_nick", NULL);
+ settings_add_str("server", "nick", NULL);
settings_add_str("server", "user_name", NULL);
settings_add_str("server", "real_name", NULL);
diff --git a/src/fe-common/irc/fe-common-irc.c b/src/fe-common/irc/fe-common-irc.c
index a7dfd74e..e45d4bab 100644
--- a/src/fe-common/irc/fe-common-irc.c
+++ b/src/fe-common/irc/fe-common-irc.c
@@ -151,7 +151,7 @@ void fe_common_irc_finish_init(void)
if (cmdline_nick != NULL) {
/* override nick found from setup */
- iconfig_set_str("settings", "default_nick", cmdline_nick);
+ iconfig_set_str("settings", "nick", cmdline_nick);
}
if (cmdline_hostname != NULL) {
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 09e4d121..f6c85961 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -476,7 +476,7 @@ static void event_connected(IRC_SERVER_REC *server)
g_return_if_fail(server != NULL);
- nick = settings_get_str("default_nick");
+ nick = settings_get_str("nick");
if (*nick == '\0' || g_strcasecmp(server->nick, nick) == 0)
return;
diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c
index 18149994..52c81d18 100644
--- a/src/fe-common/irc/module-formats.c
+++ b/src/fe-common/irc/module-formats.c
@@ -127,7 +127,7 @@ FORMAT_REC fecommon_irc_formats[] = {
{ "own_msg_private", "%K[%rmsg%K(%R$0%K)]%n $1", 2, { 0, 0 } },
{ "own_msg_private_query", "%K<%W$2%K>%n %|$1", 3, { 0, 0, 0 } },
{ "own_notice", "%K[%rnotice%K(%R$0%K)]%n $1", 2, { 0, 0 } },
- { "own_me", "%W * $0%n $1", 2, { 0, 0 } },
+ { "own_action", "%W * $0%n $1", 2, { 0, 0 } },
{ "own_ctcp", "%K[%rctcp%K(%R$0%K)]%n $1 $2", 3, { 0, 0, 0 } },
{ "own_wall", "%K[%WWall%K/%c$0%K]%n $1", 2, { 0, 0 } },
diff --git a/src/irc/core/irc-servers-setup.c b/src/irc/core/irc-servers-setup.c
index 0dbd6297..d23b051b 100644
--- a/src/irc/core/irc-servers-setup.c
+++ b/src/irc/core/irc-servers-setup.c
@@ -84,7 +84,7 @@ static void sig_server_setup_fill_chatnet(IRC_SERVER_CONNECT_REC *conn,
static void init_userinfo(void)
{
- const char *set, *default_nick, *user_name;
+ const char *set, *nick, *user_name;
char *str;
/* check if nick/username/realname wasn't read from setup.. */
@@ -106,22 +106,22 @@ static void init_userinfo(void)
}
/* nick */
- default_nick = settings_get_str("default_nick");
- if (default_nick == NULL || *default_nick == '\0') {
+ nick = settings_get_str("nick");
+ if (nick == NULL || *nick == '\0') {
str = g_getenv("IRCNICK");
- iconfig_set_str("settings", "default_nick",
+ iconfig_set_str("settings", "nick",
str != NULL ? str : user_name);
- default_nick = settings_get_str("default_nick");
+ nick = settings_get_str("nick");
}
/* alternate nick */
set = settings_get_str("alternate_nick");
if (set == NULL || *set == '\0') {
- if (strlen(default_nick) < 9)
- str = g_strconcat(default_nick, "_", NULL);
+ if (strlen(nick) < 9)
+ str = g_strconcat(nick, "_", NULL);
else {
- str = g_strdup(default_nick);
+ str = g_strdup(nick);
str[strlen(str)-1] = '_';
}
iconfig_set_str("settings", "alternate_nick", str);