python: Fix exception with list_pluginpref()
__decode cannot work (with Python3) because prefs_str has no attribute 'decode'. Related to https://github.com/hexchat/hexchat/issues/2531
This commit is contained in:
parent
cc04916137
commit
090fd29acf
@ -319,7 +319,7 @@ def del_pluginpref(name):
|
||||
def list_pluginpref():
|
||||
prefs_str = ffi.new('char[4096]')
|
||||
if lib.hexchat_pluginpref_list(lib.ph, prefs_str) == 1:
|
||||
return __decode(prefs_str).split(',')
|
||||
return __decode(ffi.string(prefs_str)).split(',')
|
||||
|
||||
return []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user