# HG changeset patch # User David Demelier # Date 1503413801 -7200 # Node ID b5478ee3d37a942bb4f1861d66e776c51a01a345 # Parent 4dd28f5416fe4c91ba583f39f7b95de57dde88b3 Irccd: fix identity.ctcp-version option, closes #690 diff -r 4dd28f5416fe -r b5478ee3d37a CHANGES.md --- a/CHANGES.md Tue Aug 22 16:38:05 2017 +0200 +++ b/CHANGES.md Tue Aug 22 16:56:41 2017 +0200 @@ -7,7 +7,8 @@ - Add new Irccd.Util.cut function (#635), - Add new irccdctl commands to edit rules (#641), - Plugin plugin: add options max-list-lines, max-list-columns (#618), - - Import Duktape 2.1.0 (#648). + - Import Duktape 2.1.0 (#648), + - Fix identity.ctcp-version option (#690). irccd 2.1.3 2017-07-28 ---------------------- diff -r 4dd28f5416fe -r b5478ee3d37a doc/examples/irccd.conf.sample --- a/doc/examples/irccd.conf.sample Tue Aug 22 16:38:05 2017 +0200 +++ b/doc/examples/irccd.conf.sample Tue Aug 22 16:56:41 2017 +0200 @@ -18,13 +18,9 @@ # Load plugins by name or by paths. # # [plugins] -# abc = # This will search for abc +# abc = "" # This will search for abc # ask = /tmp/ask.js # This use /tmp/ask.js to load the plugin -[plugins] -history = "" -ask = "" - # Section identities: # This describe identities, you can add any number you want they are used with servers so you can reuse an # identity for one or more servers if you want. @@ -35,7 +31,6 @@ # username = "bar" # (string) the realname (Optional, default: IRC Client daemon), # realname = "Jean" # (string) the username name (Optional, default: irccd), # ctcp-version = "irccd" # (string) what version to respond to CTCP VERSION (Optional, default: IRC Client Daemon), -# ctcp-autoreply = true # (bool) enable auto CTCP VERSION reply, (Optional, default: true). [identity] name = "default" diff -r 4dd28f5416fe -r b5478ee3d37a doc/html/irccd/configuring.md --- a/doc/html/irccd/configuring.md Tue Aug 22 16:38:05 2017 +0200 +++ b/doc/html/irccd/configuring.md Tue Aug 22 16:56:41 2017 +0200 @@ -114,8 +114,7 @@ - **nickname**: (string) the nickname (Optional, default: irccd), - **realname**: (string) the realname (Optional, default: IRC Client Daemon), - **username**: (string) the username name (Optional, default: irccd), - - **ctcp-version**: (string) what version to respond to CTCP VERSION (Optional, default: IRC Client Daemon), - - **ctcp-autoreply**: (bool) enable auto CTCP VERSION reply, (Optional, default: true). + - **ctcp-version**: (string) what version to respond to CTCP VERSION (Optional, default: IRC Client Daemon). **Example** diff -r 4dd28f5416fe -r b5478ee3d37a doc/man/irccd.conf.5.in --- a/doc/man/irccd.conf.5.in Tue Aug 22 16:38:05 2017 +0200 +++ b/doc/man/irccd.conf.5.in Tue Aug 22 16:56:41 2017 +0200 @@ -113,8 +113,6 @@ (string) the username name (Optional, default: irccd). .It ctcp-version (string) what version to respond to CTCP VERSION (Optional, default: IRC Client Daemon). -.It ctcp-autoreply -(bool) enable auto CTCP VERSION reply, (Optional, default: true). .El .\" SERVER .Ss server diff -r 4dd28f5416fe -r b5478ee3d37a libirccd/irccd/server.cpp --- a/libirccd/irccd/server.cpp Tue Aug 22 16:38:05 2017 +0200 +++ b/libirccd/irccd/server.cpp Tue Aug 22 16:56:41 2017 +0200 @@ -577,7 +577,7 @@ void Server::setCtcpVersion(std::string ctcpversion) { m_ctcpversion = std::move(ctcpversion); - irc_set_ctcp_version(*m_session, ctcpversion.c_str()); + irc_set_ctcp_version(*m_session, m_ctcpversion.c_str()); } void Server::next(std::unique_ptr state) noexcept