reaktor2 confuse: allow usage only in public channel
This commit is contained in:
parent
6e75d54c6b
commit
bd6b355a89
@ -64,12 +64,16 @@ let
|
||||
pkgs.gnused
|
||||
pkgs.stable-generate
|
||||
]}
|
||||
stable_url=$(stable-generate "$@")
|
||||
paste_url=$(curl -Ss "$stable_url" |
|
||||
curl -Ss https://p.krebsco.de --data-binary @- |
|
||||
tail -1
|
||||
)
|
||||
echo "$_from: $paste_url"
|
||||
if [ $_msgtarget = '#krebs' ] || [ $_msgtarget = '#xxx' ]; then
|
||||
stable_url=$(stable-generate "$@")
|
||||
paste_url=$(curl -Ss "$stable_url" |
|
||||
curl -Ss https://p.krebsco.de --data-binary @- |
|
||||
tail -1
|
||||
)
|
||||
echo "$_from: $paste_url"
|
||||
else
|
||||
echo "please use me in a public channel"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user