[IRC node] Registering with NickServ

Hi, I have troubles getting my IRC bot registered with NickServ.

I connect the second output of a "irc in" node to a function that checks msg.payload.type, and if it's "join" sends a message to an "irc out" node.

I tried both

  • msg.topic = "nickserv", msg.payload = "register <password> <email>"
  • msg.raw = ["privmsg", "nickserv", "register <password> <email>"]

but this doesn't work. What am I missing ? Thanks !