Added line output.
This commit is contained in:
parent
a647bbad76
commit
be374e6574
@ -6,8 +6,6 @@
|
||||
#include <format>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
@ -47,6 +45,7 @@ int main(){
|
||||
while(!file.eof()){
|
||||
std::string line{};
|
||||
std::getline(file,line);
|
||||
std::cout<<line<<std::endl;
|
||||
if(line.length()>0){
|
||||
size_t marker{};
|
||||
if((marker=line.find(':'))==std::string::npos)continue;
|
||||
@ -76,4 +75,4 @@ int main(){
|
||||
}
|
||||
}
|
||||
std::cout<<std::format("{} offenders were banned!",ipBanList.size())<<std::endl;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user