42wim / matterircd

Connect to your mattermost or slack using your IRC-client of choice.
MIT License
294 stars 60 forks source link

Allow disabling specific chat services / protocols #543

Closed hloeung closed 1 year ago

hloeung commented 1 year ago

Certain things like Slack runs various things on startup and connect even though a user may not use it (e.g. myself).

This adds support for disabling specific chat services / protocols completely.

42wim commented 1 year ago

Hm what exactly is the issue ? They shouldn't do anything unless you specifically message slack or mastodon for a login. So I don't really see the use-case here, unless I'm missing something.

hloeung commented 1 year ago

I found out what the issue was. If my IRC client passes through a password, then it'll initiate the slack bits. e.g:

[2023-09-10T16:01:34+10:00]  INFO matterircd: Running version 0.27.2-dev
[2023-09-10T16:01:34+10:00]  INFO matterircd: WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[2023-09-10T16:01:34+10:00]  INFO matterircd: Listening on 127.0.0.1:6669
[2023-09-10T16:01:44+10:00]  INFO matterircd: New connection: 127.0.0.1:52540
slack-go/slack2023/09/10 16:01:44 websocket_managed_conn.go:205: Connecting to RTM
slack-go/slack2023/09/10 16:01:44 rtm.go:71: Using URL:
slack-go/slack2023/09/10 16:01:44 websocket_managed_conn.go:209: Failed to start or connect to RTM: invalid_auth
slack-go/slack2023/09/10 16:01:44 websocket_managed_conn.go:147: invalid auth when connecting with RTM: invalid_auth
slack-go/slack2023/09/10 16:01:44 websocket_managed_conn.go:69: Failed to connect with RTM on try 0: invalid_auth

This is my irssi config FWIW:

  {
    address = "localhost";
    chatnet = "Mattermost";
    port = "6669";
    password = "XXXX";
    use_ssl = "no";
    starttls = "no";
    no_cap = "yes";
  },

Commenting out the "password = ..." line above fixes this. So yeah, local configuration error, closing this off.