# \[IRC node\] Registering with NickServ

**URL:** <https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933>\
**Category:** General\
**Created:** [13 February 2021 14:17 UTC](https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933 "2021-02-13T14:17:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliv3](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oliv3/32/7193_2.png) [@oliv3](https://discourse.nodered.org/u/oliv3)\
**Post date:** [13 February 2021 14:17 UTC](https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933/1 "2021-02-13T14:17:28Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 April 2021 14:18 UTC](https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933/2 "2021-04-14T14:18:24Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
