mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
clang-format: Set IndentCaseBlocks to false
This commit is contained in:
parent
02206f3215
commit
4423574d26
58 changed files with 4729 additions and 4766 deletions
|
@ -279,7 +279,7 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
|||
make_intrusive<StringVal>(type.c_str()),
|
||||
make_intrusive<StringVal>(channel.c_str()), std::move(set));
|
||||
}
|
||||
break;
|
||||
break;
|
||||
|
||||
// Count of users and services on this server.
|
||||
case 255:
|
||||
|
@ -456,38 +456,38 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
|||
|
||||
// RPL_TOPIC reply.
|
||||
case 332:
|
||||
{
|
||||
if ( ! irc_channel_topic )
|
||||
break;
|
||||
|
||||
vector<string> parts = SplitWords(params, ' ');
|
||||
if ( parts.size() < 4 )
|
||||
{
|
||||
Weird("irc_invalid_topic_reply");
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned int pos = params.find(':');
|
||||
if ( pos < params.size() )
|
||||
{
|
||||
string topic = params.substr(pos + 1);
|
||||
const char* t = topic.c_str();
|
||||
|
||||
if ( *t == ':' )
|
||||
++t;
|
||||
|
||||
EnqueueConnEvent(irc_channel_topic, ConnVal(), val_mgr->Bool(orig),
|
||||
make_intrusive<StringVal>(parts[1].c_str()),
|
||||
make_intrusive<StringVal>(t));
|
||||
}
|
||||
else
|
||||
{
|
||||
Weird("irc_invalid_topic_reply");
|
||||
return;
|
||||
}
|
||||
}
|
||||
{
|
||||
if ( ! irc_channel_topic )
|
||||
break;
|
||||
|
||||
vector<string> parts = SplitWords(params, ' ');
|
||||
if ( parts.size() < 4 )
|
||||
{
|
||||
Weird("irc_invalid_topic_reply");
|
||||
return;
|
||||
}
|
||||
|
||||
unsigned int pos = params.find(':');
|
||||
if ( pos < params.size() )
|
||||
{
|
||||
string topic = params.substr(pos + 1);
|
||||
const char* t = topic.c_str();
|
||||
|
||||
if ( *t == ':' )
|
||||
++t;
|
||||
|
||||
EnqueueConnEvent(irc_channel_topic, ConnVal(), val_mgr->Bool(orig),
|
||||
make_intrusive<StringVal>(parts[1].c_str()),
|
||||
make_intrusive<StringVal>(t));
|
||||
}
|
||||
else
|
||||
{
|
||||
Weird("irc_invalid_topic_reply");
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
// WHO reply line.
|
||||
case 352:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue