admin: join channel when invited
parent
e2535ab621
commit
9cd3578ed1
|
@ -20,6 +20,14 @@ join.rule = r'\.join (#\S+)(?: *(\S+))?'
|
|||
join.priority = 'low'
|
||||
join.example = '.join #example or .join #example key'
|
||||
|
||||
def autojoin(phenny, input):
|
||||
"""Join the specified channel when invited by an admin."""
|
||||
if input.admin:
|
||||
channel = input.group(1)
|
||||
phenny.write(['JOIN'], channel)
|
||||
autojoin.event = 'INVITE'
|
||||
autojoin.rule = r'(.*)'
|
||||
|
||||
def part(phenny, input):
|
||||
"""Part the specified channel. This is an admin-only command."""
|
||||
# Can only be done in privmsg by an admin
|
||||
|
|
Loading…
Reference in New Issue