Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
Update wikimgnt.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MacFan4000 committed Aug 14, 2020
1 parent 2568ac2 commit 360affa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MirahezeBots/plugins/wikimgnt.py
Expand Up @@ -114,14 +114,14 @@ def logpage(bot, trigger):
bot.say("Syntax: .log wiki message")
return
sender = trigger.nick
requestdata = [trigger.account, options[0]]
if bot.settings.wikimgnt.wiki_farm is True and len(options) < 2:
bot.say("Syntax: .log wiki message")
return
elif bot.settings.wikimgnt.wiki_farm is True:
url = 'https://' + options[0] + '.' + bot.settings.wikimgnt.wiki_domain
message = options[1]
target = get_logpage(options[0], bot.memory["wikimgnt"]["jdcache"])
requestdata = [trigger.account, options[0]]
if check_access(bot.memory["wikimgnt"]["jdcache"], requestdata) is not True:
bot.reply(ACLERROR)
return
Expand Down

0 comments on commit 360affa

Please sign in to comment.