diff options
author | Joe Robinson <joe@grabyo.com> | 2017-04-19 12:25:54 +0100 |
---|---|---|
committer | Joe Robinson <joe@grabyo.com> | 2017-04-19 12:25:54 +0100 |
commit | 5422ca830c2d5f2845c837cccf00a42f4e310fa6 (patch) | |
tree | ae89cc5af944de2c3225799481d4fc3846e6a042 /User.py | |
parent | d1879fae05beb4e84f7c738b981381c98e98b991 (diff) |
Improve user handling, fixes crash bug on /parts
Diffstat (limited to 'User.py')
-rw-r--r-- | User.py | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -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 |