Update plugin.py

This commit is contained in:
Gordon Shumway 2019-02-21 21:06:39 -05:00 committed by GitHub
parent 7a96dca6d3
commit 2e46ea810b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -116,10 +116,11 @@ class Fun(callbacks.Plugin):
channel = msg.args[0]
optlist = dict(optlist)
font = None
words = []
if text:
text = text.strip()
if '|' in text:
words = text.split('|')
elif '|' in text:
words = text.split('|')
if 'font' in optlist:
font = optlist.get('font')
if words: