mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-05-01 21:11:28 +00:00
The IRC message shouldn't be sent if there's nothing to send.
This commit is contained in:
parent
5a633cead3
commit
4748c9cc88
7
lugito
7
lugito
@ -115,6 +115,7 @@ def main():
|
|||||||
else:
|
else:
|
||||||
comment = False
|
comment = False
|
||||||
|
|
||||||
|
if comment or edited or newtask:
|
||||||
# We should also know who did this thing
|
# We should also know who did this thing
|
||||||
userlookup = tasksearch[0]["authorPHID"]
|
userlookup = tasksearch[0]["authorPHID"]
|
||||||
who = dict(phab.phid.query(phids=[userlookup]))[userlookup]["fullName"]
|
who = dict(phab.phid.query(phids=[userlookup]))[userlookup]["fullName"]
|
||||||
@ -126,11 +127,11 @@ def main():
|
|||||||
else:
|
else:
|
||||||
link = link + "\x03"
|
link = link + "\x03"
|
||||||
message = "\x033[\x03\x0313"+ fulltaskname +"\x03\x033]\x03 \x0315" + str(who) + "\x03 "
|
message = "\x033[\x03\x0313"+ fulltaskname +"\x03\x033]\x03 \x0315" + str(who) + "\x03 "
|
||||||
if comment == True:
|
if comment:
|
||||||
message = message + "commented on the task: " + link
|
message = message + "commented on the task: " + link
|
||||||
elif edited == True:
|
elif edited:
|
||||||
message = message + "edited a message on the task: " + link
|
message = message + "edited a message on the task: " + link
|
||||||
elif newtask == True:
|
elif newtask:
|
||||||
message = message + "just created this task: " + link
|
message = message + "just created this task: " + link
|
||||||
print(message)
|
print(message)
|
||||||
sendnotice(message)
|
sendnotice(message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user