Files
hptoad/examples/plugins/example

12 lines
207 B
Plaintext
Raw Normal View History

2016-08-19 21:08:03 +03:00
#!/bin/sh
2015-08-13 17:52:59 +03:00
2016-08-19 21:08:03 +03:00
user="$1" # User nickname.
admin="$2" # If one is an admin.
2015-08-13 17:52:59 +03:00
if [ "$admin" != 'true' ]; then
2016-08-19 21:08:03 +03:00
printf "%s\n" "$user: you are not an admin"
2015-08-13 17:52:59 +03:00
else
2016-08-19 21:08:03 +03:00
printf "%s\n" "$user: you are an admin"
2015-08-13 17:52:59 +03:00
fi