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
5b600300
Commit
5b600300
authored
18 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
room -> group chat
parent
7bcc6dd2
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/common/connection_handlers.py
+12
-12
12 additions, 12 deletions
src/common/connection_handlers.py
with
12 additions
and
12 deletions
src/common/connection_handlers.py
+
12
−
12
View file @
5b600300
...
...
@@ -1508,22 +1508,22 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco)
self
.
dispatch
(
'
NOTIFY
'
,
(
jid_stripped
,
'
error
'
,
errmsg
,
resource
,
prio
,
keyID
,
timestamp
))
elif
errcode
==
'
401
'
:
# password required to join
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
_
(
'
A password is required to join this ro
om
.
'
)))
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
A password is required to join this
g
ro
up chat
.
'
)))
elif
errcode
==
'
403
'
:
# we are banned
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
_
(
'
You are banned from this ro
om
.
'
)))
elif
errcode
==
'
404
'
:
# ro
om
does not exist
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
_
(
'
Such ro
om
does not exist.
'
)))
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
You are banned from this
g
ro
up chat
.
'
)))
elif
errcode
==
'
404
'
:
#
g
ro
up chat
does not exist
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
Such
g
ro
up chat
does not exist.
'
)))
elif
errcode
==
'
405
'
:
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
_
(
'
Room
creation is restricted.
'
)))
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
Group chat
creation is restricted.
'
)))
elif
errcode
==
'
406
'
:
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
Your registered nickname must be used.
'
)))
elif
errcode
==
'
407
'
:
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join ro
om
'
),
self
.
dispatch
(
'
ERROR
'
,
(
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
You are not in the members list.
'
)))
elif
errcode
==
'
409
'
:
# nick conflict
# the jid_from in this case is FAKE JID: room_jid/nick
...
...
@@ -1531,7 +1531,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco)
proposed_nickname
=
resource
+
\
gajim
.
config
.
get
(
'
gc_proposed_nick_char
'
)
room_jid
=
gajim
.
get_room_from_fjid
(
who
)
self
.
dispatch
(
'
ASK_NEW_NICK
'
,
(
room_jid
,
_
(
'
Unable to join ro
om
'
),
self
.
dispatch
(
'
ASK_NEW_NICK
'
,
(
room_jid
,
_
(
'
Unable to join
g
ro
up chat
'
),
_
(
'
Your desired nickname is in use or registered by another occupant.
\n
Please specify another nickname below:
'
),
proposed_nickname
))
else
:
# print in the window the error
self
.
dispatch
(
'
ERROR_ANSWER
'
,
(
''
,
jid_stripped
,
...
...
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