[rssnotify] Fix my incompetence
parent
2e6a04a73d
commit
28fc9f1f15
|
@ -32,7 +32,7 @@ def to_unix_time(tstr):
|
||||||
ts += int(g[3]) * 60
|
ts += int(g[3]) * 60
|
||||||
return ts
|
return ts
|
||||||
|
|
||||||
def resolve_channels(l):
|
def resolve_channels(phenny, l):
|
||||||
ret = set()
|
ret = set()
|
||||||
for entry in l:
|
for entry in l:
|
||||||
sign = 1
|
sign = 1
|
||||||
|
@ -128,7 +128,7 @@ class RssNotify():
|
||||||
committer_final = f_clong % (committer, committer_realname)
|
committer_final = f_clong % (committer, committer_realname)
|
||||||
return f_all % (committer_final, repo_name, commit_text, commit_hash, commit_link, commit_time)
|
return f_all % (committer_final, repo_name, commit_text, commit_hash, commit_link, commit_time)
|
||||||
def _announce(self, phenny, message, chans):
|
def _announce(self, phenny, message, chans):
|
||||||
chans = resolve_channels(chans)
|
chans = resolve_channels(phenny, chans)
|
||||||
for ch in chans:
|
for ch in chans:
|
||||||
phenny.write(['PRIVMSG', ch], message)
|
phenny.write(['PRIVMSG', ch], message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue