Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
178
Issues
178
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
2d90ee68
Commit
2d90ee68
authored
Jul 01, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Available users now have a greater priority on nickname completion. fixed #1560
parent
432bab0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
CHANGELOG
CHANGELOG
+1
-0
src/gui.py
src/gui.py
+10
-1
src/user.py
src/user.py
+4
-0
No files found.
CHANGELOG
View file @
2d90ee68
...
...
@@ -9,6 +9,7 @@ http://codingteam.net/project/poezio/roadmap
- Server on /join command can be omitted
- /query command can now take a message in parameters
- logs are now save in $XDG_DATA_HOME and this can be configured
- Available users now have a greater priority on nickname completion
* Poezio 0.6.1 - 13 Jun 2010
- Enable tracebacks
...
...
src/gui.py
View file @
2d90ee68
...
...
@@ -232,7 +232,16 @@ class Gui(object):
"""
Called when Tab is pressed, complete the nickname in the input
"""
self
.
window
.
input
.
auto_completion
(
self
.
current_room
().
users
)
def
compare_users
(
a
,
b
):
"""
Used to sort users by their availability
"""
if
a
.
show
==
b
.
show
:
return
0
if
a
.
show
is
None
:
return
-
1
return
1
self
.
window
.
input
.
auto_completion
(
sorted
(
self
.
current_room
().
users
,
compare_users
))
def
rotate_rooms_right
(
self
,
args
=
None
):
"""
...
...
src/user.py
View file @
2d90ee68
...
...
@@ -57,3 +57,7 @@ class User(object):
if
datetime
.
now
()
-
delta
>
self
.
last_talked
:
return
False
return
True
def
__repr__
(
self
):
return
"<user.User object nick:%s show:%s(%s) status:%s affiliation:%s>"
\
%
(
self
.
nick
,
self
.
show
,
type
(
self
.
show
),
self
.
status
,
self
.
affiliation
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment