Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
louiz’
biboumi
Commits
cc1255d2
Commit
cc1255d2
authored
May 11, 2015
by
louiz’
Browse files
Fix the way we check for the PING id
parent
7fe0dc26
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bridge/bridge.cpp
View file @
cc1255d2
...
...
@@ -418,7 +418,7 @@ void Bridge::send_irc_user_ping_request(const std::string& irc_hostname, const s
if
(
message
.
command
==
"NOTICE"
&&
utils
::
tolower
(
user
.
nick
)
==
nick
&&
message
.
arguments
.
size
()
>=
2
&&
body
.
substr
(
0
,
6
)
==
"
\01
PING "
)
{
const
std
::
string
id
=
body
.
substr
(
6
,
body
.
size
()
-
6
);
const
std
::
string
id
=
body
.
substr
(
6
,
body
.
size
()
-
7
);
if
(
id
!=
iq_id
)
return
false
;
Jid
jid
(
from_jid
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment