Fork project
This commit is contained in:
11
examples/plugins/example
Executable file
11
examples/plugins/example
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user