summaryrefslogtreecommitdiff
path: root/net/__init__.py
diff options
context:
space:
mode:
authorLivio Recchia <recchialivio@libero.it>2020-02-10 23:06:34 +0100
committerLivio Recchia <recchialivio@libero.it>2020-02-10 23:06:34 +0100
commit9a13903a2f7d3a65fdf15a65fb59cccd622e2066 (patch)
tree9403b7dff39eb5e5d7fa0f79efb69b496add4c4b /net/__init__.py
parent11cc316b74d5f3f283413a33e7693b314741aa4a (diff)
downloadmanachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.gz
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.bz2
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.tar.xz
manachat-9a13903a2f7d3a65fdf15a65fb59cccd622e2066.zip
Initial commit
Diffstat (limited to 'net/__init__.py')
-rw-r--r--net/__init__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/__init__.py b/net/__init__.py
new file mode 100644
index 0000000..55c1c56
--- /dev/null
+++ b/net/__init__.py
@@ -0,0 +1,11 @@
+import loginsrv
+
+
+def login(host, port, username, password, charname):
+ loginsrv.connect(host, port)
+
+ loginsrv.server.username = username
+ loginsrv.server.password = password
+ loginsrv.server.char_name = charname
+
+ loginsrv.cmsg_server_version_request()