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
98
Issues
98
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
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
6fa548a1
Commit
6fa548a1
authored
Dec 03, 2013
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display all the MODE arguments in the message
parent
a4c845ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
src/irc/irc_client.cpp
src/irc/irc_client.cpp
+11
-3
No files found.
src/irc/irc_client.cpp
View file @
6fa548a1
...
...
@@ -377,10 +377,18 @@ void IrcClient::on_channel_mode(const IrcMessage& message)
iid
.
chan
=
message
.
arguments
[
0
];
iid
.
server
=
this
->
hostname
;
IrcUser
user
(
message
.
prefix
);
std
::
string
mode_arguments
;
for
(
size_t
i
=
1
;
i
<
message
.
arguments
.
size
();
++
i
)
{
if
(
!
message
.
arguments
[
i
].
empty
())
{
if
(
i
!=
1
)
mode_arguments
+=
" "
;
mode_arguments
+=
message
.
arguments
[
i
];
}
}
this
->
bridge
->
send_message
(
iid
,
""
,
std
::
string
(
"Mode "
)
+
iid
.
chan
+
" ["
+
message
.
arguments
[
1
]
+
(
message
.
arguments
.
size
()
>
2
?
(
" "
+
message
.
arguments
[
2
])
:
""
)
+
"] by "
+
user
.
nick
,
" ["
+
mode_arguments
+
"] by "
+
user
.
nick
,
true
);
}
...
...
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