mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -106,7 +106,7 @@ void CClient::UserCommand(CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
CString sChan = sLine.Token(1);
|
||||
CString sChan = sLine.Token(1).MakeLower();
|
||||
|
||||
if (sChan.empty()) {
|
||||
PutStatus("Usage: Detach <#chan>");
|
||||
@@ -117,7 +117,10 @@ void CClient::UserCommand(CString& sLine) {
|
||||
vector<CChan*>::const_iterator it;
|
||||
unsigned int uMatches = 0, uDetached = 0;
|
||||
for (it = vChans.begin(); it != vChans.end(); ++it) {
|
||||
if (!(*it)->GetName().WildCmp(sChan))
|
||||
CChan *pChannel = *it;
|
||||
CString channelName = pChannel->GetName().AsLower();
|
||||
|
||||
if (!channelName.WildCmp(sChan))
|
||||
continue;
|
||||
uMatches++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user