Merge pull request 'More resilient lookup' (#4) from Georg/UnicodeEmoji:query into master

Reviewed-on: LimnoriaPlugins/UnicodeEmoji#4
Reviewed-by: Pratyush Desai <pratyush.desai@liberta.casa>
This commit is contained in:
Pratyush Desai 2024-08-26 17:40:01 +02:00
commit 4962b3ef3d

View File

@ -160,7 +160,9 @@ class UnicodeEmoji(callbacks.Plugin):
Prints the Unicode emoji as listed here https://gist.github.com/mogad0n/476c3880dc0e0a059ed03efa265e50f7
"""
re = emoji[emote]
re = emoji.get(emote.lower())
if re is None:
re = emoji['fuck-off']
irc.reply('%s' % re, msg=msg, prefixNick=False )
e = wrap(e, ['text'])