Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Sep 19, 2023
1 parent 0a513dc commit 20d000e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/help-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

was loosely inspired by irssi and looks something like this:

`192939 1: #g(5) h:2 a:2,3 ed, ned, ame, same, sam`
`192939 1: #g(5) +9 h:2 a:2,3 ed, ned, ame, same, sam`

* according to the server, the UTC time is `19:29:39`

* you are in window `1` (the first channel you joined), which is channel `#g`, which has `5` users

* there is `9` more messages to see if you scroll down

* `h:2` you were hilighted (your name was mentioned) in window `2`; use the command **`/2`** or just press **`CTRL-E`** which takes you to the channel with the most important happening

* `a:2,3` activity in windows `2` and `3` which you haven't seen
Expand Down
4 changes: 2 additions & 2 deletions r0c/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION = (1, 5, 0)
BUILD_DT = (2023, 9, 18)
VERSION = (1, 5, 1)
BUILD_DT = (2023, 9, 19)

S_VERSION = u".".join(map(str, VERSION))
S_BUILD_DT = u"{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
Expand Down
13 changes: 11 additions & 2 deletions r0c/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def exec_cmd(self, cmd_str):
)
return

print(" join: %s %s" % (arg, self.nick))
print(" ->join: %s %s" % (arg, self.nick))
nchan = self.world.join_pub_chan(self, arg[1:]).nchan
# this is in charge of activating the new channel,
# rapid part/join will crash us without this
Expand All @@ -404,7 +404,7 @@ def exec_cmd(self, cmd_str):

ac = self.active_chan
ch_name = "#" + ac.nchan.name if ac.nchan.name else ac.alias
print(" part: %s %s" % (ch_name, self.nick))
print(" <-part: %s %s" % (ch_name, self.nick))
self.world.part_chan(self.active_chan)
# this is in charge of activating the new channel,
# rapid part/join will crash us without this
Expand Down Expand Up @@ -588,6 +588,15 @@ def exec_cmd(self, cmd_str):
),
)
self.world.send_chan_msg(u"--", inf, u"-----------------")
else:
for n, uch in enumerate(self.chans):
nch = uch.nchan
if not nch.name:
continue

t = u"%d users in /%d #%s: " % (len(nch.uchans), n, nch.name)
t += u", ".join(sorted([x.user.nick for x in nch.uchans]))
self.world.send_chan_msg(u"--", inf, t)

elif cmd == u"a":
activity = {} # type: dict[int, Chat.UChannel]
Expand Down

0 comments on commit 20d000e

Please sign in to comment.