#795864 Please make joining channels optional

Package:
irker
Source:
irker
Submitter:
Andras Korn
Date:
2022-01-27 17:27:07 UTC
Severity:
wishlist
Tags:
#795864#5
Date:
2015-08-17 14:37:18 UTC
From:
To:
Hi,

currently irker unconditionally joins channels it is asked to make
announcements to.

However, if a channel is not mode +n (or whatever the local equivalent of
this channel mode on a particular IRC network is), it's possible to send
PRIVMSGs to channels without joining them.

This may be preferable for several reasons:

 * no join/part messages _at all_

 * no need to establish more than one connection to the irc server to be
   able to reach dozens of channels

I modified line 106 of irkerd to read:

                    if ((channel not in self.channels_joined) and (message == "")):

This way it's hopefully still possible to make irkerd join a channel by
asking it to announce the empty string, but it won't join channels by
default anymore.

I think this is not the best solution, though -- for one thing, it breaks
installations that depend on the previous behaviour.

A new command line switch seems a cleaner way of doing this. Alternatively,
since upstream seems to insist that policy belongs in hook scripts and not
irkerd, the JSON API could be extended with a boolean "join" field which
could default to true or false, depending on the irkerd command line. Then
hook scripts would be able to decide what messages/channels merit joining.

Andras

#795864#10
Date:
2016-03-09 06:17:05 UTC
From:
To:
This is being tracked upstream as https://gitlab.com/esr/irker/issues/6