Show a list of users in the send_raw web interface

This commit is contained in:
Kyle Fuller
2011-02-22 16:06:43 +00:00
parent d8b181718c
commit a93a586f53
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -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;
}