hptoad/examples/plugins/example

12 lines
207 B
Plaintext
Raw Normal View History

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