summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-07 21:22:29 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-07 21:22:29 -0300
commite24d87fefc4bea4b47d598c6dac588226f480573 (patch)
treea749873e327910c9a38019ee83ff39b4a8aa73a8 /npc
parent39390c8538825e15a00714fe4948ccc4170c313c (diff)
downloadserverdata-e24d87fefc4bea4b47d598c6dac588226f480573.tar.gz
serverdata-e24d87fefc4bea4b47d598c6dac588226f480573.tar.bz2
serverdata-e24d87fefc4bea4b47d598c6dac588226f480573.tar.xz
serverdata-e24d87fefc4bea4b47d598c6dac588226f480573.zip
Don't allow GMs to vote, only to see the candidates
Note: GMs are still allowed to candidate themselves. This might be useful if they believe there was fraud in an election, for example? (Not sure)
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/politics.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index 70fc08941..997cd3cf7 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -196,7 +196,7 @@ function script POL_Candidate {
}
next;
- if (#POL_VOTEDAY == gettimeparam(GETTIME_DAYOFMONTH))
+ if (#POL_VOTEDAY == gettimeparam(GETTIME_DAYOFMONTH) || is_gm())
return;
mesc l("In whom to vote?");
select .@list$;