Skip to content

Commit

Permalink
Make ssl=False work with Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Mar 29, 2023
1 parent b3def2a commit dfc0686
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ add lurklite (without any permissions) to your Discord guild/server.

## Installation

To install lurklite, you can simply install it with `pip`
(`sudo pip3 install lurklite` on most GNU/Linux distributions). After
installation, you should be able to run `lurklite` (or `python3 -m lurklite`).
To install lurklite, you can simply install it with `pipx install lurklite`.
After installation, you should be able to run `lurklite`.

## Config file

Expand Down
9 changes: 6 additions & 3 deletions lurklite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# lurklite core
#

import concurrent.futures, os, miniirc, re, sys, time
import concurrent.futures, miniirc, re, time
import lurklite.tempcmds as tempcmds
static_cmds = None

# The version
miniirc.version = f'lurklite v0.4.26 (powered by {miniirc.version})'
miniirc.version = f'lurklite v0.4.27 (powered by {miniirc.version})'

# Throw errors
class BotError(Exception):
Expand Down Expand Up @@ -298,8 +298,11 @@ def __init__(self, config, *, debug=False):

self._conf_assert('matrix', 'homeserver', 'token')
c = config['matrix']
ssl = True
if 'ssl' in c:
ssl = self._conf_bool('matrix', 'ssl')
irc = miniirc_matrix.Matrix(c['homeserver'], auto_connect=False,
debug=debug, token=c['token'])
debug=debug, token=c['token'], ssl=ssl)
_servers['Matrix'] = irc
self._add_extras('matrix', c, irc)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'lurklite',
version = '0.4.26',
version = '0.4.27',
packages = ['lurklite'],
author = 'luk3yx',
description = 'A miniirc-based IRC bot.',
Expand Down

0 comments on commit dfc0686

Please sign in to comment.