Commits

Benjamin Smith committed f5d143a

Get nickname from right plance. Nick is keyword arg, not positional.

Comments (0)

Files changed (1)

src/jabbercat/web_controller.py

     def setup_app(self, jabber):
         self.web_config = self.config.get('web')
         self.jabber_config = self.config.get('jabber')
-        self.nick = self.config.get('nick')
+        self.nick = self.jabber_config.get('nickname')
         templates = self.web_config.get('templates')
 
         sys.argv[0] = self.web_config.get('ip')
                 continue
             if chat in web.config.chats:
                 web.config.jabber.send_message_to_chat(chat,
-                    input.jabberinput, web.config.nick)
+                    input.jabberinput, my_nick = web.config.nick)
                 successful.append(chat)
             else:
                 web.config.jabber.send_message_to_chat(chat,