WeeChat dev news - ircWeeChat development blog2024-01-22T17:53:19+01:00urn:md5:edd364dae4d94114a2ba146603903683DotclearIRC SASL SCRAM authenticationurn:md5:5b883c9a5b9121a49101894a91690dd02021-06-12T20:57:00+01:002021-06-13T08:04:53+01:00Sébastien Helleuircauthenticationsaslscram <p>IRC SASL SCRAM authentication has been added in WeeChat 3.2, with 3 new mechanisms:</p>
<ul>
<li><code>scram-sha-1</code>: SASL SCRAM with SHA-1 digest algorithm,</li>
<li><code>scram-sha-256</code>: SASL SCRAM with SHA-256 digest algorithm,</li>
<li><code>scram-sha-512</code>: SASL SCRAM with SHA-512 digest algorithm.</li>
</ul>
<p>References:</p>
<ul>
<li>Support of SASL mechanisms in IRC clients: <a href="https://ircv3.net/docs/sasl-mechs" title="https://ircv3.net/docs/sasl-mechs">https://ircv3.net/docs/sasl-mechs</a></li>
<li>RFC 7677 (SCRAM-SHA-256 and SCRAM-SHA-256-PLUS): <a href="https://datatracker.ietf.org/doc/html/rfc7677" title="https://datatracker.ietf.org/doc/html/rfc7677">https://datatracker.ietf.org/doc/ht...</a></li>
</ul>Hex dump in IRC raw bufferurn:md5:c5f964a7e844700c512f3f83e61d64f32015-08-24T16:53:00+02:002022-10-22T20:05:29+02:00Sébastien Helleuircdebugirc <p>Hex dump of IRC messages can now be displayed in raw buffer, this can be useful to debug problems with charsets or some special chars.</p>
<p>It is displayed if debug is set with a level >= 2 for the irc plugin, for example: <code>/debug set irc 2</code>.</p>
<p>Screenshot (click for full size):</p>
<p><a href="https://blog.weechat.org/public/weechat_irc_raw_hex_dump.png" title="weechat_irc_raw_hex_dump.png"><img src="https://blog.weechat.org/public/.weechat_irc_raw_hex_dump_m.png" alt="weechat_irc_raw_hex_dump.png" style="display:table; margin:0 auto;" title="Hex dump of IRC raw messages" /></a></p>SASL ECDSA-NIST256P-CHALLENGEurn:md5:69851b540d8a962dfc9dd387a8af606e2015-02-08T20:19:00+01:002022-10-22T20:05:53+02:00Sébastien Helleuircecdsaircsasl <p>The support of a new SASL mechanism called "ecdsa-nist256p-challenge" has been added three weeks ago.<br />
This new mechanism uses a challenge with public/private key, so no password is required to connect.</p>
<p>Instructions to configure and use this mechanism are in user's guide: <a href="https://weechat.org/doc/devel/user/en/#irc_sasl_authentication" hreflang="en">https://weechat.org/doc/devel/user/en/#irc_sasl_authentication</a>.</p>
<p>Important notes:</p>
<ul>
<li>GnuTLS ≥ 3.0.21 is required.</li>
<li>This mechanism can only be used on servers supporting it (for example servers using atheme, like freenode).</li>
</ul>The IRC smart filter... even smarter!urn:md5:f97605e306ebd7f217ac3e2568fe09bd2013-02-17T13:29:00+01:002022-10-22T20:06:18+02:00Sébastien Helleuircfilterircsmart <p>A new option has been added for the IRC smart filter: <code>irc.look.smart_filter_join_unmask</code>, with default value <code>30</code> (in minutes).</p>
<p>IRC plugin will automatically unmask a filtered join of a nick, if he spoke within N minutes after the join (N being the value of new option <code>irc.look.smart_filter_join_unmask</code>). Moreover, nick changes are tracked, and will be unmasked with the join.</p>
<p>Events triggering the unmask of join are: a message (can be CTCP), a notice or an update of topic.</p>Tags in IRC messagesurn:md5:dc8d6fc044c581e87aafb82472aeb7632012-11-27T22:51:00+01:002022-10-22T20:10:50+02:00Sébastien Helleuirccapabilityirctag <p>Tags in IRC messages are now supported (in development version, planned for version 0.4.0), following this specification: <a href="http://ircv3.atheme.org/specification/message-tags-3.2" hreflang="en">http://ircv3.atheme.org/specification/message-tags-3.2</a>.</p>
<p>The tag "time" is now read and is used to set the time for the message displayed.</p>
<p>The "znc" IRC bouncer is using this tag with the capability "znc.in/server-time-iso" (name should change in the next release). For example if you are using a server called "znc" in WeeChat, you can do:</p>
<pre>/set irc.server.znc.capabilities "znc.in/server-time-iso"</pre>
<p>Note: with znc 1.0, the server capability was "znc.in/server-time". With znc git > 1.0, the capability is "znc.in/server-time-iso".</p>
<p>Some info about capability "server-time": <a href="https://github.com/atheme/ircv3-specifications/blob/master/extensions/server-time-3.2" hreflang="en">https://github.com/atheme/ircv3-specifications/blob/master/extensions/server-time-3.2</a>.</p>Redirection of IRC commandsurn:md5:b8291aa1d6b8c242386e05000606393a2010-11-08T20:00:00+01:002022-10-22T20:07:03+02:00Sébastien Helleuircirc <p>It is now possible to redirect IRC commands to a callback, in plugins/scripts.</p>
<p>First you have to add a hsignal with callback, to receive command output. Then, add redirection by sending a hsignal, and send your command to IRC server. It will automatically use your redirection.</p>
<p>Each redirection uses a pattern, which defines start/stop/extra commands.
Default patterns are: ison, list, mode_channel, mode_channel_ban, mode_channel_ban_exception, mode_channel_invite, mode_user, names, ping, time, topic, userhost, who, whois, whowas.</p>
<p>You can create your own pattern with signal "irc_redirect_pattern".</p>
<p>Examples of redirection and pattern creation are available in <a href="https://weechat.org/doc/devel/api#hsignal_irc_redirect_command" hreflang="en">WeeChat devel doc</a>.</p>SASL authentication with IRC serverurn:md5:00aa885d0f49eb6fa251471bf4cd674d2010-02-19T17:54:00+01:002022-10-22T20:07:18+02:00Sébastien Helleuircircsasl <p>It is now possible to use SASL authentication with IRC server, using two mechanisms: "plain" (default) or "dh-blowfish" (crypted password).</p>
<p>New options have been added to servers:</p>
<ul>
<li>sasl_mechanism: mechanism to use ("plain" or "dh-blowfish")</li>
<li>sasl_timeout: timeout (in seconds) for authentication</li>
<li>sasl_username: username</li>
<li>sasl_password: password</li>
</ul>
<p>You just have to setup username (your nick) and password (password of nick) and then connect to server, you'll be identified with SASL if all is ok.</p>
<p>If you want to set "dh-blowfish" by default for all servers:</p>
<pre>/set irc.server_default.sasl_mechanism dh-blowfish</pre>New IRC output queue with high priorityurn:md5:3f70491c90623d34f4f5e0e3eada691c2010-01-17T17:06:00+01:002022-10-22T20:08:10+02:00Sébastien Helleuircctcpirc <p>A new IRC output queue has been added in irc plugin, with high priority. There are now two queues for messages sent to IRC server:</p>
<ul>
<li>queue for user messages or commands, with high priority</li>
<li>queue for other messages, with low priority.</li>
</ul>
<p>Low priority queue is used to send automatic messages, like replies to CTCP messages. So if you are spamed with CTCP messages, WeeChat will first send your messages (queue with high priority), and then CTCP replies (queue with low priority).</p>
<p>Accordingly, anti-flood option has been split into two options:</p>
<ul>
<li><code>irc.network.anti_flood_prio_high</code>: delay between two user messages/commands</li>
<li><code>irc.network.anti_flood_prio_low</code>: delay between two other messages</li>
</ul>New IRC commands allchan and allservurn:md5:0d24ffaf659beb7d7e4e1fc975190e5c2010-01-08T19:02:00+01:002022-10-22T20:08:10+02:00Sébastien Helleuircirc <p>New commands have been added to IRC plugin: <code>/allchan</code> and <code>/allserv</code>.
<br />These commands can execute a command on all buffer of all channels or all servers, with optional exclusion of some channels/servers.</p>
<p>Old commands <code>/amsg</code> and <code>/ame</code> are now replaced by aliases. If you're upgrading from recent version (>= 0.3.0), you have to manually create alias, see page with <a href="https://weechat.org/files/releasenotes/ReleaseNotes-0.3.1.html" hreflang="en">release notes</a>.</p>Target buffer for IRC messagesurn:md5:0f6765efe6a4db5acaee93de3f45a6432010-01-01T14:31:00+01:002022-10-22T20:08:10+02:00Sébastien Helleuircbufferirc <p>New options have been added to choose target buffer for IRC messages.</p>
<p>More info and examples in documentation: <a href="https://weechat.org/doc/devel/user#irc_target_buffer" hreflang="en">https://weechat.org/doc/devel/user#irc_target_buffer</a></p>IRC CTCP repliesurn:md5:bfdd38cff565cc9a762214514e0de91b2009-09-15T20:00:00+02:002022-10-22T20:08:10+02:00Sébastien Helleuircctcpirc <p>It is now possible to customize CTCP replies, or block some CTCP queries (do not reply).</p>
<p>For example, to customize reply to CTCP "VERSION", use following command:</p>
<pre>/set irc.ctcp.version "I'm running WeeChat $version, it rocks!"</pre>
<p>If you want to block CTCP "VERSION" (do not reply to a query), then set empty string:</p>
<pre>/set irc.ctcp.version ""</pre>
<p>Even unknown CTCP can be customized, for example you can reply to CTCP "BLABLA":</p>
<pre>/set irc.ctcp.blabla "This is my answer to CTCP BLABLA"</pre>
<p>It is possible to customize CTCP for one server only, using its internal name before CTCP name:</p>
<pre>/set irc.ctcp.freenode.version "WeeChat $version (for freenode)"</pre>
<p>If you want to restore standard CTCP reply, then remove option:</p>
<pre>/unset irc.ctcp.version</pre>
<p>Some codes are automatically expanded by WeeChat when replying to CTCP, please read documentation for more information (User's guide, chapter: Plugins / IRC plugin / CTCP replies).</p>Smart IRC join/part/quit message filterurn:md5:edc38a7f5cdb09c65e693943194888d52008-10-25T19:30:00+02:002022-10-22T20:09:57+02:00Sébastien Helleuircfilterignoreircsmart <p>A new smart filter for IRC join/part/quit message has been added. It is disabled by default (so you'll see all join/part/quit by default).</p>
<p>To enable it, use following commands:</p>
<pre>/set irc.look.smart_filter on
/filter add irc_smart * irc_smart_filter *</pre>
<p>You can setup delay: <code>/set irc.look.smart_filter_delay 5</code></p>
<h4>How does it work?</h4>
<p>When a nick spoke on channel during past X minutes (where X is delay irc.look.smart_filter_delay), its join/part/quit will be displayed by default. Otherwise, if nick did not speak for a long time, all join/part/quit messages will be tagged with "irc_smart_filter". So you have to define a filter on this tag to hide join/part/quit from users that are not speaking on channel (see command above).</p>Ignore command, reloaded!urn:md5:6751365c514db5fc171c14a04d6db5362008-09-04T20:23:00+02:002022-10-23T07:21:18+02:00Sébastien Helleuircignoreircplugin <p>The new /ignore command is now available. You can ignore nicks (or hostnames), using regex.</p>
<p>Note: this command will be improved in near future with more options.</p>
<p>Some exemples (you can find them with <code>/help ignore</code>):</p>
<ul>
<li>ignore nick "toto" everywhere: <code>/ignore add toto</code></li>
<li>ignore host "toto@domain.com" on freenode server: <code>/ignore add toto@domain.com freenode</code></li>
<li>ignore host "toto*@*.domain.com" on freenode/#weechat: <code>/ignore add toto*@*.domain.com freenode #weechat</code></li>
</ul>