mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-09 10:22:54 +02:00
change approve
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n
|
||||
"bbspost": lambda: handle_bbspost(message, message_from_id, deviceID),
|
||||
"bbsread": lambda: handle_bbsread(message),
|
||||
"blackjack": lambda: handleBlackJack(message, message_from_id, deviceID),
|
||||
"okcl": lambda: handle_checklist(message, message_from_id, deviceID),
|
||||
"approvecl": lambda: handle_checklist(message, message_from_id, deviceID),
|
||||
"denycl": lambda: handle_checklist(message, message_from_id, deviceID),
|
||||
"checkin": lambda: handle_checklist(message, message_from_id, deviceID),
|
||||
"checklist": lambda: handle_checklist(message, message_from_id, deviceID),
|
||||
|
||||
@@ -6,7 +6,7 @@ from modules.log import logger
|
||||
from modules.settings import checklist_db, reverse_in_out, bbs_ban_list, bbs_admin_list
|
||||
import time
|
||||
|
||||
trap_list_checklist = ("checkin", "checkout", "checklist", "okcl", "denycl",)
|
||||
trap_list_checklist = ("checkin", "checkout", "checklist", "approvecl", "denycl",)
|
||||
|
||||
def initialize_checklist_database():
|
||||
try:
|
||||
@@ -415,7 +415,7 @@ def process_checklist_command(nodeID, message, name="none", location="none"):
|
||||
# elif "purgeout" in message_lower:
|
||||
# return mark_checkout_removed_by_name(name)
|
||||
|
||||
elif "okcl " in message_lower:
|
||||
elif "approvecl " in message_lower:
|
||||
if not is_admin:
|
||||
return "You do not have permission to approve check-ins."
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user