Python: Fix error in hexchat.emit_print when passing time attribute

This commit is contained in:
jacob1 2019-06-23 15:43:44 -04:00 committed by Patrick
parent a67eafc796
commit 586f089df6

View File

@ -73,7 +73,7 @@ def emit_print(event_name, *args, **kwargs):
attrs = lib.hexchat_event_attrs_create(lib.ph)
attrs.server_time_utc = time
ret = lib.hexchat_emit_print(lib.ph, attrs, event_name.encode(), *cargs)
ret = lib.hexchat_emit_print_attrs(lib.ph, attrs, event_name.encode(), *cargs)
lib.hexchat_event_attrs_free(lib.ph, attrs)
return ret