aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.capsman
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-11-27 14:08:14 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-11-28 21:19:39 +0100
commit6e4d7159378259a521e467504509de871381d078 (patch)
tree9fcf9938cbf64949f5022a268b9249e3b0cbba17 /collect-wireless-mac.capsman
parentc4f8c1ad52cd629f39009848610d31b320bfda03 (diff)
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
Diffstat (limited to 'collect-wireless-mac.capsman')
-rw-r--r--collect-wireless-mac.capsman2
1 files changed, 1 insertions, 1 deletions
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" . \