diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-06 23:29:48 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-06 23:29:48 +0000 |
commit | 4c6237256f026def4221615bf04c9ec97cee15bb (patch) | |
tree | 65b3d378aca1d68d854148af23a96da52e8741a3 /src/irc/core/irc-chatnets.c | |
parent | be8778052e5932c3d0b4b021ce00997b1f5f9880 (diff) | |
download | irssi-4c6237256f026def4221615bf04c9ec97cee15bb.zip |
/IRCNET ADD -usermode option added.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-chatnets.c')
-rw-r--r-- | src/irc/core/irc-chatnets.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/irc/core/irc-chatnets.c b/src/irc/core/irc-chatnets.c index b4e97e08..5d375869 100644 --- a/src/irc/core/irc-chatnets.c +++ b/src/irc/core/irc-chatnets.c @@ -38,6 +38,8 @@ static void sig_chatnet_read(IRC_CHATNET_REC *rec, CONFIG_NODE *node) if (!IS_IRC_CHATNET(rec)) return; + rec->usermode = g_strdup(config_node_get_str(node, "usermode", NULL)); + rec->max_cmds_at_once = config_node_get_int(node, "cmdmax", 0); rec->cmd_queue_speed = config_node_get_int(node, "cmdspeed", 0); rec->max_query_chans = config_node_get_int(node, "max_query_chans", 0); @@ -53,6 +55,9 @@ static void sig_chatnet_saved(IRC_CHATNET_REC *rec, CONFIG_NODE *node) if (!IS_IRC_CHATNET(rec)) return; + if (rec->usermode != NULL) + iconfig_node_set_str(node, "usermode", rec->usermode); + if (rec->max_cmds_at_once > 0) iconfig_node_set_int(node, "cmdmax", rec->max_cmds_at_once); if (rec->cmd_queue_speed > 0) |