Ticket #266 (closed task: fixed)
replacing "no privilege left" msg by something more useful
| Reported by: | quinox | Owned by: | daelstorm |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | nicotine | Version: | SVN (checked out today) |
| Keywords: | privileges | Cc: |
Description
in the nicotine room we get a lot of questions about privileges. The official slsk client does not report this kind of thing upon startup at all, so I think it's wise to be a bit more verbose.
My suggestion:
Replace line 801 in file pynicotine/pynicotine.py
current msg:
if msg.seconds == 0:
self.logMessage(_("You have no privileges left"))
proposed msg:
if msg.seconds == 0:
self.logMessage(_("You have no privileges left. They are not needed for Nicotine to function properly. You can acquire privileges by donating at %s") % ("hŧŧp://www.slsknet.org/userlogin.php?username="+self.config.sections["server"]["login"].replace(' ','+')))
The replace() is needed to make the link clickable in case the user has spaces in its name
