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
90
Issues
90
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
ffcce28c
Commit
ffcce28c
authored
Mar 24, 2015
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not log a warning when we receive a PONG command
parent
c243fea6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
src/irc/irc_client.cpp
src/irc/irc_client.cpp
+4
-0
src/irc/irc_client.hpp
src/irc/irc_client.hpp
+6
-0
No files found.
src/irc/irc_client.cpp
View file @
ffcce28c
...
...
@@ -281,6 +281,10 @@ void IrcClient::send_pong_command(const IrcMessage& message)
this
->
send_message
(
IrcMessage
(
"PONG"
,
{
id
}));
}
void
IrcClient
::
on_pong
(
const
IrcMessage
&
message
)
{
}
void
IrcClient
::
send_ping_command
()
{
this
->
send_message
(
IrcMessage
(
"PING"
,
{
"biboumi"
}));
...
...
src/irc/irc_client.hpp
View file @
ffcce28c
...
...
@@ -70,6 +70,11 @@ public:
* Send the PONG irc command
*/
void
send_pong_command
(
const
IrcMessage
&
message
);
/**
* Do nothing when we receive a PONG command (but also do not log that no
* handler exist)
*/
void
on_pong
(
const
IrcMessage
&
message
);
void
send_ping_command
();
/**
* Send the USER irc command
...
...
@@ -339,6 +344,7 @@ static const std::unordered_map<std::string, irc_callback_t> irc_callbacks = {
{
"NICK"
,
&
IrcClient
::
on_nick
},
{
"MODE"
,
&
IrcClient
::
on_mode
},
{
"PING"
,
&
IrcClient
::
send_pong_command
},
{
"PONG"
,
&
IrcClient
::
on_pong
},
{
"KICK"
,
&
IrcClient
::
on_kick
},
{
"401"
,
&
IrcClient
::
on_generic_error
},
...
...
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