Restricted the use of the !stop command to the review owner (#3688).
This commit is contained in:
parent
b7be0fae07
commit
29e878a02a
@ -48,6 +48,10 @@ public class StopReviewHook extends Hook
|
||||
{
|
||||
bot.sendMessage(sender + ", pas de revue en cours, abandon impossible.");
|
||||
}
|
||||
else if (!bot.getReview().isOwner(sender))
|
||||
{
|
||||
bot.sendMessage(sender + ", vous n'êtes pas le conducteur de la réunion.");
|
||||
}
|
||||
else
|
||||
{
|
||||
bot.sendMessage("Abandon de la revue en cours.");
|
||||
|
Loading…
Reference in New Issue
Block a user