From 0505cb4faa3a2652c1525724d141e49942285b2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Michael=20O=2E=20Hegg=C3=B8?= <danmichaelo@gmail.com>
Date: Wed, 8 Jul 2015 07:50:51 +0200
Subject: [PATCH] [#90] Fix 'New messages' flag

The flag has always been named 'messages', not
'message', but has been documented wrongly.
---
 mwclient/client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mwclient/client.py b/mwclient/client.py
index c2e6cbc..1155d66 100644
--- a/mwclient/client.py
+++ b/mwclient/client.py
@@ -218,7 +218,7 @@ class Site(object):
             self.blocked = (userinfo['blockedby'], userinfo.get('blockreason', u''))
         else:
             self.blocked = False
-        self.hasmsg = 'message' in userinfo
+        self.hasmsg = 'messages' in userinfo
         self.logged_in = 'anon' not in userinfo
         if 'error' in info:
             if info['error']['code'] in (u'internal_api_error_DBConnectionError', u'internal_api_error_DBQueryError'):
-- 
GitLab