IRC-Bot

morphux IRC bot
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/IRC-Bot

commit d1dba3676d5d1f587f44cf8cb916f91b45c2761d
parent e42d8b74a6fb3b2758e4769366d6a43f387998bb
Author: Ne02ptzero <l.solofrizzo@gmail.com>
Date:   Wed, 19 Nov 2014 12:24:38 +0100

Core fix: Admin Join

Diffstat:
Mmorphux.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/morphux.py b/morphux.py @@ -149,7 +149,11 @@ class Morphux: def onJoin(self, line): user = line.split(" ") user[0] = user[0][1:] - self.currentUsers[user[0].split("!")[0]] = True + if (nickName[0] == '@'): + nickName = nickName[1:] + self.currentUsers[nickName] = {"isAdmin": 1} + else: + self.currentUsers[user[0].split("!")[0]] = True if (user[0].split("!")[0] == self.config['nick']): return for name, function in self.join.items():