From 72dac079fbac16ea9dee6de544bdc7ed24a5e208 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 12 Jun 2019 16:21:45 +0200 Subject: Add RPC method "warn" to show messge to users Only usable by root. --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 81879b5..a823e03 100644 --- a/src/main.c +++ b/src/main.c @@ -558,3 +558,11 @@ void main_queueAction( enum Shutdown action, int delta ) } } +void main_warnAll( const char *message ) +{ + for ( int idx = 0; idx < userCount; ++idx ) { + showWarning( &users[idx], "Warning", message ); + } +} + + -- cgit v1.2.3-55-g7522