summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]anidb0
-rw-r--r--pyanidb/__init__.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/anidb b/anidb
index 81f6850..81f6850 100644..100755
--- a/anidb
+++ b/anidb
diff --git a/pyanidb/__init__.py b/pyanidb/__init__.py
index 81311f7..848bf65 100644
--- a/pyanidb/__init__.py
+++ b/pyanidb/__init__.py
@@ -2,7 +2,7 @@ import socket, time
protover = 3
client = 'pyanidb'
-clientver = 0
+clientver = 5
states = {
'unknown': 0,
@@ -110,7 +110,7 @@ class AniDB:
code, text, data = self.execute('AUTH', {'user': self.username, 'pass': self.password, 'protover': protover, 'client': client, 'clientver': clientver})
if code in (200, 201):
self.session = text.split(' ', 1)[0]
- if code == 201 and clientver:
+ if code == 201:
self.newver_msg()
elif code == 500:
raise AniDBUserError()