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
norstbox
gajim
Commits
9db3d26c
Commit
9db3d26c
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
fix so uf_show works
parent
71912242
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/logger.py
+1
-0
1 addition, 0 deletions
src/common/logger.py
src/history_window.py
+4
-2
4 additions, 2 deletions
src/history_window.py
with
5 additions
and
2 deletions
src/common/logger.py
+
1
−
0
View file @
9db3d26c
...
...
@@ -186,6 +186,7 @@ class Logger:
done
=
False
found_first_line_that_matches
=
False
while
not
done
:
# it should be utf8 (I don't decode for optimization reasons)
line
=
f
.
readline
()
if
line
:
line
=
helpers
.
from_one_line
(
line
)
...
...
This diff is collapsed.
Click to expand it.
src/history_window.py
+
4
−
2
View file @
9db3d26c
...
...
@@ -113,7 +113,8 @@ class HistoryWindow:
msg
=
_
(
'
%(nick)s is now %(status)s: %(status_msg)s
'
)
%
{
'
nick
'
:
nick
,
'
status
'
:
helpers
.
get_uf_show
(
show
),
'
status_msg
'
:
status_msg
}
else
:
msg
=
_
(
'
%(nick)s is now %(status)s
'
)
%
{
'
nick
'
:
nick
,
show
=
show
[:
-
1
]
# remove last \n
msg
=
_
(
'
%(nick)s is now %(status)s
\n
'
)
%
{
'
nick
'
:
nick
,
'
status
'
:
helpers
.
get_uf_show
(
show
)
}
tag_msg
=
'
status
'
elif
type
==
'
recv
'
:
...
...
@@ -135,7 +136,8 @@ class HistoryWindow:
msg
=
_
(
'
Status is now: %(status)s: %(status_msg)s
'
)
%
\
{
'
status
'
:
helpers
.
get_uf_show
(
data
[
0
]),
'
status_msg
'
:
status_msg
}
else
:
msg
=
_
(
'
Status is now: %(status)s
'
)
%
{
'
status
'
:
data
[
0
]
=
data
[
0
][:
-
1
]
# remove last \n
msg
=
_
(
'
Status is now: %(status)s
\n
'
)
%
{
'
status
'
:
helpers
.
get_uf_show
(
data
[
0
])
}
tag_msg
=
'
status
'
...
...
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