poljar / weechat-matrix

Weechat Matrix protocol script written in python
Other
960 stars 121 forks source link

python: unable to call function "info_get" #268

Open Strykar opened 3 years ago

Strykar commented 3 years ago

Other scripts load fine in Weechat / Arch x64:

02:18 script: 365 scripts for WeeChat 3.1
02:18 Plugins loaded: alias, buflist, charset, exec, fset, irc, logger, python, relay, script, spell, trigger

Autostarting matrix.py fails:

02:21 python: loading script "/home/strykar/weechat-greatest/python/matrix.py"
02:21 =!= python: unable to call function "info_get", script is not initialized (script: -)

However, /script load matrix.py by hand works"

02:21 python: registered script "matrix", version 0.2.0 (matrix chat plugin)
02:21 -- matrix: Connecting to matrix.org:443 (SSL)...

I can't understand why it's failing when called via (/set matrix.server.matrix_org.autoconnect on), what am I missing here?

Unsure if it's related but it also merges with the weechat buffer on start, which is fixed by /buffer unmerge inside the weechat buffer.

trygveaa commented 3 years ago

Unsure if it's related but it also merges with the weechat buffer on start, which is fixed by /buffer unmerge inside the weechat buffer.

Check the option matrix.look.server_buffer.

Strykar commented 3 years ago

Check the option matrix.look.server_buffer.

Thanks, that was it for the buffer issue!