Add channel whitelist for excluding channels from idle handling
This adds a new channel_whitelist variable that can be used to specify channels that players won't be moved from even if they are idle. Fixes: #8
This commit is contained in:

committed by
Stefan Hacker

parent
0361021fbd
commit
e595ea861b
@@ -59,7 +59,8 @@ class idlemove(MumoModule):
|
||||
('deafen', commaSeperatedBool, [False]),
|
||||
('channel', commaSeperatedIntegers, [1]),
|
||||
('source_channel', commaSeperatedIntegers, [-1]),
|
||||
('whitelist', commaSeperatedStrings, [])
|
||||
('whitelist', commaSeperatedStrings, []),
|
||||
('channel_whitelist', commaSeperatedIntegers, [])
|
||||
),
|
||||
}
|
||||
|
||||
@@ -159,6 +160,7 @@ class idlemove(MumoModule):
|
||||
continue
|
||||
|
||||
if user.idlesecs > threshold and\
|
||||
user.channel not in scfg.channel_whitelist and\
|
||||
(source_channel == -1 or\
|
||||
user.channel == source_channel or\
|
||||
user.channel == channel):
|
||||
|
Reference in New Issue
Block a user