Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
biboumi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
88
Issues
88
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
louiz’
biboumi
Commits
f0a25ccd
Commit
f0a25ccd
authored
Aug 03, 2016
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower case the nick, when forwarding a version or ping request
parent
3fbe01bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/bridge/bridge.cpp
src/bridge/bridge.cpp
+2
-2
No files found.
src/bridge/bridge.cpp
View file @
f0a25ccd
...
...
@@ -741,7 +741,7 @@ void Bridge::send_iq_version_request(const std::string& nick, const std::string&
{
const
auto
resources
=
this
->
resources_in_server
[
hostname
];
if
(
resources
.
begin
()
!=
resources
.
end
())
this
->
xmpp
.
send_iq_version_request
(
nick
+
"!"
+
utils
::
empty_if_fixed_server
(
hostname
),
this
->
user_jid
+
"/"
+
*
resources
.
begin
());
this
->
xmpp
.
send_iq_version_request
(
utils
::
tolower
(
nick
)
+
"!"
+
utils
::
empty_if_fixed_server
(
hostname
),
this
->
user_jid
+
"/"
+
*
resources
.
begin
());
}
void
Bridge
::
send_xmpp_ping_request
(
const
std
::
string
&
nick
,
const
std
::
string
&
hostname
,
...
...
@@ -753,7 +753,7 @@ void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string&
// Forward to the first resource (arbitrary, based on the “order” of the std::set) only
const
auto
resources
=
this
->
resources_in_server
[
hostname
];
if
(
resources
.
begin
()
!=
resources
.
end
())
this
->
xmpp
.
send_ping_request
(
nick
+
"!"
+
utils
::
empty_if_fixed_server
(
hostname
),
this
->
user_jid
+
"/"
+
*
resources
.
begin
(),
utils
::
revstr
(
id
));
this
->
xmpp
.
send_ping_request
(
utils
::
tolower
(
nick
)
+
"!"
+
utils
::
empty_if_fixed_server
(
hostname
),
this
->
user_jid
+
"/"
+
*
resources
.
begin
(),
utils
::
revstr
(
id
));
}
void
Bridge
::
set_preferred_from_jid
(
const
std
::
string
&
nick
,
const
std
::
string
&
full_jid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment