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
8
Merge Requests
8
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
3bde3a27
Commit
3bde3a27
authored
Jul 08, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #1509
parent
660ddf84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/gui.py
src/gui.py
+9
-7
No files found.
src/gui.py
View file @
3bde3a27
...
...
@@ -429,13 +429,15 @@ class Gui(object):
status
=
stanza
.
getStatus
()
role
=
stanza
.
getRole
()
if
not
room
.
joined
:
# user in the room BEFORE us.
room
.
users
.
append
(
User
(
from_nick
,
affiliation
,
show
,
status
,
role
))
if
from_nick
.
encode
(
'utf-8'
)
==
room
.
own_nick
:
room
.
joined
=
True
self
.
add_message_to_room
(
room
,
_
(
"Your nickname is %s"
)
%
(
from_nick
))
else
:
self
.
add_message_to_room
(
room
,
_
(
"%s is in the room"
)
%
(
from_nick
))
# ignore redondant presence message, see bug #1509
if
from_nick
not
in
[
user
.
nick
for
user
in
room
.
users
]:
room
.
users
.
append
(
User
(
from_nick
,
affiliation
,
show
,
status
,
role
))
if
from_nick
.
encode
(
'utf-8'
)
==
room
.
own_nick
:
room
.
joined
=
True
self
.
add_message_to_room
(
room
,
_
(
"Your nickname is %s"
)
%
(
from_nick
))
else
:
self
.
add_message_to_room
(
room
,
_
(
"%s is in the room"
)
%
(
from_nick
))
else
:
change_nick
=
stanza
.
getStatusCode
()
==
'303'
kick
=
stanza
.
getStatusCode
()
==
'307'
...
...
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