Skip to content

Add support for VERSION command

Julio González Gil requested to merge juliogonzalez/irc-bridge:version into develop

Having this is useful for the user to check the bridge version at any time, without reconnecting.

The RFC only describes the following reply:

        351     RPL_VERSION
                        "<version>.<debuglevel> <server> :<comments>"

                - Reply by the server showing its version details.
                  The <version> is the version of the software being
                  used (including any patchlevel revisions) and the
                  <debuglevel> is used to indicate if the server is
                  running in "debug mode".

                  The "comments" field may contain any comments about
                  the version or further version details.

However most IRC daemons nowadays (with the exception of Bahamut at Dalnet) are also returning the numeric 005 with the supported featues.

For example Undernet (but also Freenode or EFNet):

VERSION
:amsterdam.nl.eu.undernet.org 351 testgitter u2.10.12.19. amsterdam.nl.eu.undernet.org :B100A--M-U6
:amsterdam.nl.eu.undernet.org 005 testgitter WHOX WALLCHOPS WALLVOICES USERIP CPRIVMSG CNOTICE SILENCE=25 MODES=6 MAXCHANNELS=40 MAXBANS=100 NICKLEN=12 :are supported by this server
:amsterdam.nl.eu.undernet.org 005 testgitter MAXNICKLEN=15 TOPICLEN=160 AWAYLEN=160 KICKLEN=160 CHANNELLEN=200 MAXCHANNELLEN=200 CHANTYPES=#& PREFIX=(ov)@+ STATUSMSG=@+ CHANMODES=b,k,l,imnpstrDdRcC CASEMAPPING=rfc1459 NETWORK=UnderNet :are supported by this server

So that's what I replicated here.

Edited by Eric Eastwood

Merge request reports