title: TypeError: OneTalk() takes exactly 5 arguments (4 given)
body: <pre><code>import host
  Noms = "Name"
  
  def init():
      host.registerHandler('ChatReceivedExtended', onTalk) # extended to distinguish between local chat and whispers
  
  def deinit():
      host.unregisterHandler('ChatReceivedExtended', onTalk)
  
  def onTalk(bnet, user, message, isWhisper, payload):
      if isWhisper and user.getName() == Noms:
          bnet.queueChatCommand("/me " + message)
          bnet.queueChatCommand("/f m " + message)
  </code></pre>
  
  <p>When I try to run the script it gives me <code>"TypeError: OneTalk() takes exactly 5 arguments (4 given)"</code>. But when I add username to line 11 it gives me <code>"TypeError: OneTalk() takes exactly 5 arguments (6 given)'</code>.</p>
  
  <pre><code>def onTalk(bnet, user, message, isWhisper, payload):
  
  def onTalk(bnet, user, message, isWhisper, payload, username):
  </code></pre>