mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Update to latest Csocket
Lots of interesting stuff in here, if you want details, ask Csocket's git history. :-P Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
+1101
-76
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -16,7 +16,7 @@ unsigned int CSockManager::GetAnonConnectionCount(const CString &sIP) const {
|
||||
unsigned int ret = 0;
|
||||
|
||||
for (it = begin(); it != end(); ++it) {
|
||||
CZNCSock *pSock = *it;
|
||||
Csock *pSock = *it;
|
||||
// Logged in CClients have "USR::<username>" as their sockname
|
||||
if (pSock->GetType() == Csock::INBOUND && pSock->GetRemoteIP() == sIP
|
||||
&& pSock->GetSockName().Left(5) != "USR::") {
|
||||
|
||||
@@ -50,7 +50,7 @@ public:
|
||||
}
|
||||
|
||||
virtual ~CShellMod() {
|
||||
vector<CZNCSock*> vSocks = m_pManager->FindSocksByName("SHELL");
|
||||
vector<Csock*> vSocks = m_pManager->FindSocksByName("SHELL");
|
||||
|
||||
for (unsigned int a = 0; a < vSocks.size(); a++) {
|
||||
m_pManager->DelSockByAddr(vSocks[a]);
|
||||
|
||||
Reference in New Issue
Block a user