summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Matilainen <jari.matilainen@gmail.com>2016-06-18 18:47:11 +0200
committerJari Matilainen <jari.matilainen@gmail.com>2016-06-18 18:47:11 +0200
commit4292dbd20250faa4736ab9871bddd97dd7d6c80a (patch)
tree6f9a462691e74d7f6cd0d2bad2e238e8b23145fe /src
parent79e30405e6b22b116d9d2c8ac5af0f4a4dfdc9c7 (diff)
downloadirssi-4292dbd20250faa4736ab9871bddd97dd7d6c80a.zip
Add command_set_options for modify commands to allow completion
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-channels.c1
-rw-r--r--src/fe-common/core/fe-server.c1
-rw-r--r--src/fe-common/irc/fe-ircnet.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-channels.c b/src/fe-common/core/fe-channels.c
index b79938eb..dc7d1ee7 100644
--- a/src/fe-common/core/fe-channels.c
+++ b/src/fe-common/core/fe-channels.c
@@ -649,6 +649,7 @@ void fe_channels_init(void)
command_bind("cycle", NULL, (SIGNAL_FUNC) cmd_cycle);
command_set_options("channel add", "auto noauto -bots -botcmd");
+ command_set_options("channel modify", "auto noauto -bots -botcmd");
command_set_options("names", "count ops halfops voices normal");
command_set_options("join", "invite window");
}
diff --git a/src/fe-common/core/fe-server.c b/src/fe-common/core/fe-server.c
index e0f05980..827b237e 100644
--- a/src/fe-common/core/fe-server.c
+++ b/src/fe-common/core/fe-server.c
@@ -410,6 +410,7 @@ void fe_server_init(void)
command_bind_first("server", NULL, (SIGNAL_FUNC) server_command);
command_bind_first("disconnect", NULL, (SIGNAL_FUNC) server_command);
command_set_options("server add", "4 6 !! ssl +ssl_cert +ssl_pkey +ssl_pass ssl_verify +ssl_cafile +ssl_capath +ssl_ciphers auto noauto proxy noproxy -host -port noautosendcmd");
+ command_set_options("server modify", "4 6 !! ssl +ssl_cert +ssl_pkey +ssl_pass ssl_verify +ssl_cafile +ssl_capath +ssl_ciphers auto noauto proxy noproxy -host -port noautosendcmd");
signal_add("server looking", (SIGNAL_FUNC) sig_server_looking);
signal_add("server connecting", (SIGNAL_FUNC) sig_server_connecting);
diff --git a/src/fe-common/irc/fe-ircnet.c b/src/fe-common/irc/fe-ircnet.c
index 6778cb02..e82fa27f 100644
--- a/src/fe-common/irc/fe-ircnet.c
+++ b/src/fe-common/irc/fe-ircnet.c
@@ -236,6 +236,8 @@ void fe_ircnet_init(void)
command_set_options("network add", "-kicks -msgs -modes -whois -cmdspeed "
"-cmdmax -nick -user -realname -host -autosendcmd -querychans -usermode -sasl_mechanism -sasl_username -sasl_password");
+ command_set_options("network modify", "-kicks -msgs -modes -whois -cmdspeed "
+ "-cmdmax -nick -user -realname -host -autosendcmd -querychans -usermode -sasl_mechanism -sasl_username -sasl_password");
}
void fe_ircnet_deinit(void)