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
eta
gajim
Commits
0346e29e
Commit
0346e29e
authored
16 years ago
by
js
Browse files
Options
Downloads
Patches
Plain Diff
*sigh* I'm too confused today. This is nicer.
parent
03f64fb2
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/session.py
+14
-15
14 additions, 15 deletions
src/session.py
with
14 additions
and
15 deletions
src/session.py
+
14
−
15
View file @
0346e29e
...
...
@@ -152,21 +152,20 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
if
msgtxt
==
''
:
return
else
:
if
msgtxt
:
self
.
append_otr_tag
=
False
# We're also here if we just don't
# support OTR. Thus, we should strip
# the tags from plaintext messages
# since they look ugly.
msgtxt
=
msgtxt
.
replace
(
'
\x20\x09\x20
'
\
'
\x20\x09\x09\x09\x09\x20\x09
'
\
'
\x20\x09\x20\x09\x20\x20
'
,
''
)
msgtxt
=
msgtxt
.
replace
(
'
\x20\x09\x20
'
\
'
\x09\x20\x20\x09\x20
'
,
''
)
msgtxt
=
msgtxt
.
replace
(
'
\x20\x20\x09
'
\
'
\x09\x20\x20\x09\x20
'
,
''
)
elif
msgtxt
!=
None
and
msgtxt
!=
''
:
self
.
append_otr_tag
=
False
# We're also here if we just don't
# support OTR. Thus, we should strip
# the tags from plaintext messages
# since they look ugly.
msgtxt
=
msgtxt
.
replace
(
'
\x20\x09\x20
'
\
'
\x20\x09\x09\x09\x09\x20\x09
'
\
'
\x20\x09\x20\x09\x20\x20
'
,
''
)
msgtxt
=
msgtxt
.
replace
(
'
\x20\x09\x20
'
\
'
\x09\x20\x20\x09\x20
'
,
''
)
msgtxt
=
msgtxt
.
replace
(
'
\x20\x20\x09
'
\
'
\x09\x20\x20\x09\x20
'
,
''
)
else
:
log_type
=
'
single_msg_recv
'
...
...
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