Skip to content
Snippets Groups Projects
Commit e11a2866 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't call a function as default function argument! Fixes time when sending forwarded message

parent 60fc1040
No related branches found
No related tags found
No related merge requests found
...@@ -122,8 +122,10 @@ class Events: ...@@ -122,8 +122,10 @@ class Events:
def remove_account(self, account): def remove_account(self, account):
del self._events[account] del self._events[account]
def create_event(self, type_, parameters, time_ = time.time(), def create_event(self, type_, parameters, time_=None,
show_in_roster = False, show_in_systray = True): show_in_roster=False, show_in_systray=True):
if not time_:
time_ = time.time()
return Event(type_, time_, parameters, show_in_roster, return Event(type_, time_, parameters, show_in_roster,
show_in_systray) show_in_systray)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment