Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@gmail.com>2017-02-19 16:18:05 +0300
committerJohn Smith <mrdoctorwho@gmail.com>2017-02-19 16:18:05 +0300
commit553d360e62c85370bf6a48aeb422090043ccada9 (patch)
treebfa0290b9f98245518bb5a3f4c446c3497513f67 /extensions
parent4f78359cb1cdd5b544aa6eccb1475563394b7385 (diff)
Fix typo(s) in captcha extension
Diffstat (limited to 'extensions')
-rw-r--r--extensions/captcha_forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/captcha_forms.py b/extensions/captcha_forms.py
index 9f5018a..794bfd9 100644
--- a/extensions/captcha_forms.py
+++ b/extensions/captcha_forms.py
@@ -19,15 +19,15 @@ def sendCaptcha(user, captcha):
"""
url = captcha.get("img")
sid = captcha.get("sid")
- logger.debug("VK: sending message with captchaXMPP (jid: %s)", user)
+ logger.debug("VK: sending message with captcha (jid: %s)", user)
body = _("WARNING: VK has sent you a CAPTCHA."
" Please, follow the link: %s and enter the text shown on the image to the chat."
- " Example: !captchaXMPP my_captcha_key."
+ " Example: !captcha my_captcha_key."
"\nWarning: don't use Firefox to open the link.") % url
msg = xmpp.Message(user, body, "chat", frm=TransportID)
x = msg.setTag("x", namespace=xmpp.NS_OOB)
x.setTagData("url", url)
- captchaNode = msg.setTag("captchaXMPP", namespace=xmpp.NS_CAPTCHA)
+ captchaNode = msg.setTag("captcha", namespace=xmpp.NS_CAPTCHA)
image = utils.getLinkData(url, False)
if image:
hash = sha1(image).hexdigest()