From 6e4d7159378259a521e467504509de871381d078 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 27 Nov 2018 14:08:14 +0100 Subject: global-functions: add identity tag in $SendNotification ... and send subject in telegram message. --- collect-wireless-mac.capsman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collect-wireless-mac.capsman') diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman index 2d7885f..46bf7fd 100644 --- a/collect-wireless-mac.capsman +++ b/collect-wireless-mac.capsman @@ -40,7 +40,7 @@ $datetime . " connected to SSID " . $ssid . ", interface " . $interface); / log info $message; / caps-man access-list add place-before=$"place-before" comment=$message mac-address=$mac disabled=yes; - $SendNotification ("[" . $identity . "] " . $mac . " connected to " . $ssid) \ + $SendNotification ($mac . " connected to " . $ssid) \ ("A device with unknown MAC address connected to " . $ssid . " on " . $identity . ".\n\n" . \ "Controller: " . $identity . "\n" . \ "Interface: " . $interface . "\n" . \ -- cgit v1.2.3-70-g09d2