summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-03-25 04:40:19 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-03-25 04:40:19 +0100
commit2f965f7cc3d8567c02b367647c6f616dbc4d6a0f (patch)
tree15cea74f23dea851280e98fd9aa7d70fb5259047
parent9b1bae2c6e8d424ecebb588194c1bdc68884c961 (diff)
Bumped clientver. No more zero clientver.
-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()