From: Kyle Fuller Date: Mon, 18 Mar 2013 22:15:49 +0000 (+0000) Subject: Show devices with no networks associated X-Git-Tag: 1.0.0~29 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=26c5b5c127e684911911e723a39ae0ff9dcad721;p=znc-palaver.git Show devices with no networks associated --- diff --git a/palaver.cpp b/palaver.cpp index 9ea38de..4bee027 100644 --- a/palaver.cpp +++ b/palaver.cpp @@ -613,6 +613,20 @@ public: Table.SetCell("Network", sNetwork); Table.SetCell("Negotiating", CString(device.InNegotiation())); } + + if (networks.size() == 0) { + Table.SetCell("Device", device.GetToken()); + Table.SetCell("User", sUsername); + Table.SetCell("Network", ""); + Table.SetCell("Negotiating", CString(device.InNegotiation())); + } + } + + if (msvsNetworks.size() == 0) { + Table.SetCell("Device", device.GetToken()); + Table.SetCell("User", ""); + Table.SetCell("Network", ""); + Table.SetCell("Negotiating", CString(device.InNegotiation())); } }