hptoad/examples/plugins/example

12 lines
207 B
Plaintext
Raw Normal View History

2017-02-18 18:35:12 +00:00
#!/bin/sh
user="$1" # User nickname.
admin="$2" # If one is an admin.
if [ "$admin" != 'true' ]; then
printf "%s\n" "$user: you are not an admin"
else
printf "%s\n" "$user: you are an admin"
fi