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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain DEP.
biboumi
Commits
28d79a9e
Commit
28d79a9e
authored
May 15, 2018
by
louiz’
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v8'
parents
ba61d203
1c4620d9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
1 deletion
+43
-1
CHANGELOG.rst
CHANGELOG.rst
+5
-0
packaging/biboumi.spec.cmake
packaging/biboumi.spec.cmake
+3
-0
src/irc/irc_client.cpp
src/irc/irc_client.cpp
+18
-1
tests/end_to_end/__main__.py
tests/end_to_end/__main__.py
+17
-0
No files found.
CHANGELOG.rst
View file @
28d79a9e
...
...
@@ -3,6 +3,11 @@ Version 9.0
- SIGHUP is now caught and reloads the configuration like SIGUSR1 and 2.
Version 8.1 - 2018-05-14
========================
- Fix a crash on a raw NAMES command
Version 8.0 - 2018-05-02
========================
...
...
packaging/biboumi.spec.cmake
View file @
28d79a9e
...
...
@@ -66,6 +66,9 @@ make check %{?_smp_mflags}
*
${
RPM_DATE
}
Le Coz Florent <louiz@louiz.org> -
${
RPM_VERSION
}
-1
- Build latest git revision
* Wed May 14 2018 Le Coz Florent <louiz@louiz.org> - 8.1-1
Update to version 8.1
* Wed May 2 2018 Le Coz Florent <louiz@louiz.org> - 8.0-1
Update to version 8.0
...
...
src/irc/irc_client.cpp
View file @
28d79a9e
...
...
@@ -536,7 +536,9 @@ void IrcClient::send_ping_command()
void
IrcClient
::
forward_server_message
(
const
IrcMessage
&
message
)
{
const
std
::
string
from
=
message
.
prefix
;
const
std
::
string
body
=
message
.
arguments
[
1
];
std
::
string
body
;
for
(
auto
it
=
std
::
next
(
message
.
arguments
.
begin
());
it
!=
message
.
arguments
.
end
();
++
it
)
body
+=
*
it
+
' '
;
this
->
bridge
.
send_xmpp_message
(
this
->
hostname
,
from
,
body
);
}
...
...
@@ -639,6 +641,11 @@ void IrcClient::set_and_forward_user_list(const IrcMessage& message)
{
const
std
::
string
chan_name
=
utils
::
tolower
(
message
.
arguments
[
2
]);
IrcChannel
*
channel
=
this
->
get_channel
(
chan_name
);
if
(
channel
->
joined
)
{
this
->
forward_server_message
(
message
);
return
;
}
std
::
vector
<
std
::
string
>
nicks
=
utils
::
split
(
message
.
arguments
[
3
],
' '
);
for
(
const
std
::
string
&
nick
:
nicks
)
{
...
...
@@ -774,6 +781,16 @@ void IrcClient::on_channel_completely_joined(const IrcMessage& message)
{
const
std
::
string
chan_name
=
utils
::
tolower
(
message
.
arguments
[
1
]);
IrcChannel
*
channel
=
this
->
get_channel
(
chan_name
);
if
(
chan_name
==
"*"
||
channel
->
joined
)
{
this
->
forward_server_message
(
message
);
return
;
}
if
(
!
channel
->
get_self
())
{
log_error
(
"End of NAMES list but we never received our own nick."
);
return
;
}
channel
->
joined
=
true
;
this
->
bridge
.
send_user_join
(
this
->
hostname
,
chan_name
,
channel
->
get_self
(),
channel
->
get_self
()
->
get_most_significant_mode
(
this
->
sorted_user_modes
),
true
);
...
...
tests/end_to_end/__main__.py
View file @
28d79a9e
...
...
@@ -608,6 +608,23 @@ if __name__ == '__main__':
),
partial
(
expect_stanza
,
"/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"
),
]),
Scenario
(
"raw_names_command"
,
[
handshake_sequence
(),
partial
(
send_stanza
,
"<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"
),
connection_sequence
(
"irc.localhost"
,
'{jid_one}/{resource_one}'
),
partial
(
expect_stanza
,
"/message/body"
),
partial
(
expect_stanza
,
"/presence/muc_user:x/muc_user:status[@code='110']"
),
partial
(
expect_stanza
,
"/message/subject[not(text())]"
),
partial
(
send_stanza
,
"<message type='chat' from='{jid_one}/{resource_one}' to='{irc_server_one}'><body>NAMES</body></message>"
),
partial
(
expect_stanza
,
"/message/body[text()='irc.localhost: = #foo @{nick_one} ']"
),
partial
(
expect_stanza
,
"/message/body[text()='irc.localhost: * End of /NAMES list. ']"
),
]),
Scenario
(
"quit"
,
[
handshake_sequence
(),
...
...
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