diff options
| author | 2023-05-29 22:56:33 +0100 | |
|---|---|---|
| committer | 2023-05-29 23:37:20 +0100 | |
| commit | 92ba1f3f79b7fe8e600a6473feb83b3018995a01 (patch) | |
| tree | 734573c13641f0818c4cce6376f7eba3fea6d99c /src/modules/m_spanningtree/treesocket2.cpp | |
| parent | If no DNS bindport is specified then randomise it on rehash. (diff) | |
Log when a server sends an unexpected command post-authentication.
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 04bf6b9df..35d8703db 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -190,6 +190,11 @@ void TreeSocket::ProcessLine(std::string &line) { this->Capab(params); } + else + { + ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Unknown command from fd %d in the WAIT_AUTH_2 phase: %s", + GetFd(), command.c_str()); + } break; case CONNECTING: @@ -212,7 +217,13 @@ void TreeSocket::ProcessLine(std::string &line) { this->Capab(params); } + else + { + ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Unknown command from fd %d in the CONNECTING phase: %s", + GetFd(), command.c_str()); + } break; + case CONNECTED: /* * State CONNECTED: @@ -221,6 +232,7 @@ void TreeSocket::ProcessLine(std::string &line) */ this->ProcessConnectedLine(tags, prefix, command, params); break; + case DYING: break; } |
