From 00855e17fd57a8f257184614971788a0de57f416 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 2 Jul 2012 17:32:38 +0200 Subject: [PATCH] Call the right method --- ircd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircd.py b/ircd.py index dfebe71..e41e83f 100755 --- a/ircd.py +++ b/ircd.py @@ -157,16 +157,16 @@ class user: self.registered_user = True self.verify_registration() else: - send_numeric("461", "%s USER :Not enough parameters." % self.nickname) + self.client.send_numeric("461", "%s USER :Not enough parameters." % self.nickname) elif data[0].upper() == "NICK": if len(data) >= 2: self.nickname = data[1] self.registered_nick = True self.verify_registration() else: - send_numeric("461", "%s NICK :Not enough parameters." % self.nickname) + self.client.send_numeric("461", "%s NICK :Not enough parameters." % self.nickname) else: - send_numeric("451", "%s %s :You have not registered." % self.nickname) + self.client.send_numeric("451", "%s %s :You have not registered." % self.nickname) def verify_registration(self): if self.registered_nick == True and self.registered_user == True: