Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
a562bfdc
Commit
a562bfdc
authored
15 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
[punchagan & me] print /me in history correctly. Fixes #4852
parent
72d3c578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/history_window.py
+16
-12
16 additions, 12 deletions
src/history_window.py
with
16 additions
and
12 deletions
src/history_window.py
+
16
−
12
View file @
a562bfdc
...
...
@@ -438,22 +438,26 @@ class HistoryWindow:
helpers
.
get_uf_show
(
show
)
}
tag_msg
=
'
status
'
# do not do this if gcstats, avoid dupping contact_name
# eg. nkour: nkour is now Offline
if
contact_name
and
kind
!=
constants
.
KIND_GCSTATUS
:
# add stuff before and after contact name
before_str
=
gajim
.
config
.
get
(
'
before_nickname
'
)
before_str
=
helpers
.
from_one_line
(
before_str
)
after_str
=
gajim
.
config
.
get
(
'
after_nickname
'
)
after_str
=
helpers
.
from_one_line
(
after_str
)
format
=
before_str
+
contact_name
+
after_str
+
'
'
buf
.
insert_with_tags_by_name
(
end_iter
,
format
,
tag_name
)
if
message
.
startswith
(
'
/me
'
)
or
message
.
startswith
(
'
/me
\n
'
):
tag_msg
=
tag_name
else
:
# do not do this if gcstats, avoid dupping contact_name
# eg. nkour: nkour is now Offline
if
contact_name
and
kind
!=
constants
.
KIND_GCSTATUS
:
# add stuff before and after contact name
before_str
=
gajim
.
config
.
get
(
'
before_nickname
'
)
before_str
=
helpers
.
from_one_line
(
before_str
)
after_str
=
gajim
.
config
.
get
(
'
after_nickname
'
)
after_str
=
helpers
.
from_one_line
(
after_str
)
format
=
before_str
+
contact_name
+
after_str
+
'
'
buf
.
insert_with_tags_by_name
(
end_iter
,
format
,
tag_name
)
message
=
message
+
'
\n
'
if
tag_msg
:
self
.
history_textview
.
print_real_text
(
message
,
[
tag_msg
])
self
.
history_textview
.
print_real_text
(
message
,
[
tag_msg
],
name
=
contact_name
)
else
:
self
.
history_textview
.
print_real_text
(
message
)
self
.
history_textview
.
print_real_text
(
message
,
name
=
contact_name
)
def
on_query_entry_activate
(
self
,
widget
):
text
=
self
.
query_entry
.
get_text
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment