Skip to content

Commit

Permalink
Add client version to /whois (#30)
Browse files Browse the repository at this point in the history
* Add /time_est

* Add /time_est

* Remove unneeded empty line

* Put correct date

* Add Client Version to /whois

* Removed empty line.

Co-authored-by: Chrezm <42015761+Chrezm@users.noreply.github.com>
  • Loading branch information
RaveMaster073 and Chrezm committed Jan 8, 2020
1 parent cc340c6 commit 7a58f00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions server/client_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ def get_info(self, as_mod=False, as_cm=False, identifier=None):
info += '\n*Following: {}'.format(self.following.id if self.following else "-")
info += '\n*Followed by: {}'.format(", ".join([str(c.id) for c in self.followedby])
if self.followedby else "-")
info += '\n*Is Using: {0[0]} {0[1]}'.format(self.version)
info += ('\n*Online for: {}. Last active: {}'
.format(Constants.time_elapsed(self.joined), self.last_active))
return info
Expand Down
4 changes: 2 additions & 2 deletions server/tsuserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def __init__(self, protocol=None, client_manager=None, in_test=False):
self.release = 4
self.major_version = 3
self.minor_version = 0
self.segment_version = 'a1'
self.internal_version = '200102a'
self.segment_version = 'a2'
self.internal_version = '200107a'
version_string = self.get_version_string()
self.software = 'TsuserverDR {}'.format(version_string)
self.version = 'TsuserverDR {} ({})'.format(version_string, self.internal_version)
Expand Down

0 comments on commit 7a58f00

Please sign in to comment.