summaryrefslogtreecommitdiff
path: root/User.py
diff options
context:
space:
mode:
authorJoe Robinson <joe@grabyo.com>2017-04-19 12:25:54 +0100
committerJoe Robinson <joe@grabyo.com>2017-04-19 12:25:54 +0100
commit5422ca830c2d5f2845c837cccf00a42f4e310fa6 (patch)
treeae89cc5af944de2c3225799481d4fc3846e6a042 /User.py
parentd1879fae05beb4e84f7c738b981381c98e98b991 (diff)
Improve user handling, fixes crash bug on /parts
Diffstat (limited to 'User.py')
-rw-r--r--User.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/User.py b/User.py
new file mode 100644
index 0000000..9ad3eeb
--- /dev/null
+++ b/User.py
@@ -0,0 +1,43 @@
+class User():
+
+ def __init__(self):
+ self.nick = ""
+ self.mode = ""
+ self.host = ""
+ self.real_name = ""
+
+ def __init__(self, nick, mode, host, real_name):
+ self.nick = nick
+ self.mode = mode
+ self.host = host
+ self.real_name = real_name
+
+ def __init__(self, nick, mode):
+ self.nick = nick
+ self.mode = mode
+ self.host = ""
+ self.real_name = ""
+
+ def get_nick(self):
+ return self.nick
+
+ def set_nick(self, nick):
+ self.nick = nick
+
+ def get_mode(self):
+ return self.mode
+
+ def set_host(self, mode):
+ self.mode = mode
+
+ def get_host(self):
+ return self.host
+
+ def set_host(self, host):
+ self.host = host
+
+ def get_real_name(self):
+ return self.real_name
+
+ def set_real_name(self, host):
+ self.real_name = real_name