mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
announcements: odd fixes
This commit is contained in:
parent
a59acafd48
commit
fe98e9f549
1 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,8 @@ def Announce(link,cmd):
|
||||||
return
|
return
|
||||||
nextid=redis_get('cryptokingdom:announcements:nextid')
|
nextid=redis_get('cryptokingdom:announcements:nextid')
|
||||||
if nextid==None:
|
if nextid==None:
|
||||||
nextid=0
|
nextid=1
|
||||||
|
nextid=long(nextid)
|
||||||
text = " ".join(cmd[1:])
|
text = " ".join(cmd[1:])
|
||||||
redis_hset('cryptokingdom:announcements',nextid,'From %s: %s'%(link.user.nick,text))
|
redis_hset('cryptokingdom:announcements',nextid,'From %s: %s'%(link.user.nick,text))
|
||||||
nextid+=1
|
nextid+=1
|
||||||
|
@ -54,8 +55,8 @@ def Cancel(link,cmd):
|
||||||
redis_hdel('cryptokingdom:announcements',which)
|
redis_hdel('cryptokingdom:announcements',which)
|
||||||
|
|
||||||
def Help(link):
|
def Help(link):
|
||||||
link.send(link,'Announce anything that you want others to know')
|
link.send_private('Announce anything that you want others to know')
|
||||||
link.send(link,'Offers, auctions, other information')
|
link.send_private('Offers, auctions, other information')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue