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
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
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
3ea295f8
Commit
3ea295f8
authored
Sep 27, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid a crash when receiving a message from someone not in our roster
parent
d94efc30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/gui.py
src/gui.py
+1
-2
src/window.py
src/window.py
+9
-3
No files found.
src/gui.py
View file @
3ea295f8
...
...
@@ -928,8 +928,7 @@ class Gui(object):
is_jid
(
self
.
current_tab
().
get_name
()):
room
+=
'@%s'
%
jid_get_domain
(
self
.
current_tab
().
get_name
())
else
:
# no server could be found, print a message and return
# self.add_message_to_text_buffer(self.current_room(), _("You didn't specify a server for the room you want to join"))
# TODO INFO
self
.
information
(
_
(
"You didn't specify a server for the room you want to join"
),
'Error'
)
return
r
=
self
.
get_room_by_name
(
room
)
if
len
(
args
)
==
2
:
# a password is provided
...
...
src/window.py
View file @
3ea295f8
...
...
@@ -257,16 +257,22 @@ class ConversationInfoWin(InfoWin):
def
refresh
(
self
,
room
,
contact
):
if
not
self
.
visible
:
return
# contact can be None, if we receive a message
# from someone not in our roster. In this case, we display
# only the maximum information from the message we can get.
g_lock
.
acquire
()
self
.
win
.
erase
()
self
.
write_room_name
(
contact
)
self
.
write_room_name
(
contact
,
room
)
self
.
print_scroll_position
(
room
)
self
.
finish_line
(
theme
.
COLOR_INFORMATION_BAR
)
self
.
win
.
refresh
()
g_lock
.
release
()
def
write_room_name
(
self
,
contact
):
txt
=
'%s'
%
contact
.
get_jid
().
bare
def
write_room_name
(
self
,
contact
,
room
):
if
not
contact
:
txt
=
'%s'
%
room
.
name
else
:
txt
=
'%s'
%
contact
.
get_jid
().
bare
self
.
addnstr
(
txt
,
len
(
txt
),
curses
.
color_pair
(
theme
.
COLOR_INFORMATION_BAR
))
class
MucInfoWin
(
InfoWin
):
...
...
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