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
f6d16b1d
Commit
f6d16b1d
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
sleeper_state now holds string instead of 0 1 2 3
parent
123cfb70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/common/gajim.py
+6
-5
6 additions, 5 deletions
src/common/gajim.py
src/config.py
+1
-1
1 addition, 1 deletion
src/config.py
src/roster_window.py
+2
-2
2 additions, 2 deletions
src/roster_window.py
with
9 additions
and
8 deletions
src/common/gajim.py
+
6
−
5
View file @
f6d16b1d
...
...
@@ -53,8 +53,9 @@ awaiting_messages = {} # list of messages reveived but not printed
nicks
=
{}
# list of our nick names in each account
allow_notifications
=
{}
# do we allow notifications for each account ?
con_types
=
{}
# type of each connection (ssl, tls, tcp, ...)
sleeper_state
=
{}
#whether we pass auto away / xa or not
#0:don't use sleeper for this account
#1:online and use sleeper
#2:autoaway and use sleeper
#3:autoxa and use sleeper
sleeper_state
=
{}
# whether we pass auto away / xa or not
#'off': don't use sleeper for this account
#'online': online and use sleeper
#'autoaway': autoaway and use sleeper
#'autoxa': autoxa and use sleeper
This diff is collapsed.
Click to expand it.
src/config.py
+
1
−
1
View file @
f6d16b1d
...
...
@@ -1246,7 +1246,7 @@ _('To change the account name, you must be disconnected.')).get_response()
gajim
.
to_be_removed
[
name
]
=
[]
gajim
.
nicks
[
name
]
=
config
[
'
name
'
]
gajim
.
allow_notifications
[
name
]
=
False
gajim
.
sleeper_state
[
name
]
=
0
gajim
.
sleeper_state
[
name
]
=
'
off
'
gajim
.
encrypted_chats
[
name
]
=
[]
gajim
.
last_message_time
[
name
]
=
{}
#refresh accounts window
...
...
This diff is collapsed.
Click to expand it.
src/roster_window.py
+
2
−
2
View file @
f6d16b1d
...
...
@@ -1231,9 +1231,9 @@ _('If "%s" accepts this request you will know his status.') %jid).get_response()
txt
)
if
status
==
'
online
'
and
self
.
plugin
.
sleeper
.
getState
()
!=
\
common
.
sleepy
.
STATE_UNKNOWN
:
gajim
.
sleeper_state
[
account
]
=
True
gajim
.
sleeper_state
[
account
]
=
'
online
'
else
:
gajim
.
sleeper_state
[
account
]
=
False
gajim
.
sleeper_state
[
account
]
=
'
off
'
def
get_status_message
(
self
,
show
):
if
(
show
==
'
online
'
and
not
gajim
.
config
.
get
(
'
ask_online_status
'
))
or
\
...
...
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