private bool listRegWatch(Help.Help Help, Client target) { try { Row tRow; for (int tInt = 0; tInt <= FloodDB["regwatches"].Count - 1; tInt++) { tRow = FloodDB["regwatches"][tInt]; Help.sendResponse("FloodServ", MyClient, target, "REGWATCH_LISTING", Convert.ToString(tInt + 1), System.Convert.ToString(tRow["match"]), System.Convert.ToString(tRow["adder"]), Convert.ToString(System.Convert.ToInt32(tRow["date"]))); } return true; } catch (Exception) { return false; } }
private bool listNPWatch(Help.Help Help, Client target) { try { Row tRow; for (int tInt = 0; tInt <= FloodDB["npwatches"].Count - 1; tInt++) { tRow = FloodDB["npwatches"][tInt]; Help.sendResponse("FloodServ", MyClient, target, "NPWATCH_LISTING", Convert.ToString(tInt + 1), System.Convert.ToString(tRow["match"]), System.Convert.ToString(tRow["adder"]), Convert.ToString(System.Convert.ToInt32(tRow["date"]))); } return true; } catch (Exception ex) { MyCore.SendLogMessage("FloodServ", "listNPWatch", Errors.ERROR, "Failed to list watches", "", ex.Message, ex.StackTrace); return false; } }