mirror of
https://github.com/znc/znc.git
synced 2026-05-09 06:44:40 +02:00
Show a list of users in the send_raw web interface
This commit is contained in:
@@ -52,6 +52,12 @@ public:
|
||||
WebSock.GetSession()->AddSuccess("Line sent");
|
||||
}
|
||||
|
||||
const map<CString,CUser*>& msUsers = CZNC::Get().GetUserMap();
|
||||
for (map<CString,CUser*>::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) {
|
||||
CTemplate& l = Tmpl.AddRow("UserLoop");
|
||||
l["Username"] = (*it->second).GetUserName();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user