don't call a function as default function argument! Fixes time when sending forwarded message
This commit is contained in:
parent
55beaaa47e
commit
77183740d6
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue