IRC error

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Boylett

Thread Starter
Joined
Dec 23, 2006
Messages
55
I am trying to connect to IRC with C++. I get this error (a relpy from the irc server):

451 JOIN :You have not registered

This is my code:
Code:
    sprintf(buf, "USER %s \"%s\" \"%s\" :%s\r\n", user, website, hostirc, user);
    send(sockethandle, buf, sizeof(buf), 0);
    
    sprintf(buf, "NICK %s\r\nJOIN %s\r\n", nick, channel);
    send(sockethandle, buf, sizeof(buf), 0);
I have looked everywhere on the internet and everywhere says I need to send
USER %s \"%s\" \"%s\" :%s\r\n
then
NICK whatever

But I do that and I get the error. I cant figure anything out. Please help. Thanks.:)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top