Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my script throws error "You have not registered" #229

Closed
tiye opened this issue Apr 19, 2014 · 6 comments
Closed

my script throws error "You have not registered" #229

tiye opened this issue Apr 19, 2014 · 6 comments

Comments

@tiye
Copy link

tiye commented Apr 19, 2014

irc = require "irc"

client = new irc.Client 'irc.freenode.net', 'jiyinyiyong',
  channels: ['#ubuntu']

client.addListener 'message#ubuntu', (from, message) ->
  console.log (from + ' => #ubuntu: ' + message)

client.addListener 'error', (message) ->
  console.log 'error:', message

I was told that I have not registered and later banned,

[INFO] 00:26:07 Restarting
error: { prefix: 'sendak.freenode.net',
  server: 'sendak.freenode.net',
  command: 'err_notregistered',
  rawCommand: '451',
  commandType: 'error',
  args: [ '*', 'You have not registered' ] }
error: { prefix: 'sendak.freenode.net',
  server: 'sendak.freenode.net',
  command: 'err_bannedfromchan',
  rawCommand: '474',
  commandType: 'error',
  args:
   [ 'jiyinyiyong',
     '#ubuntu',
     'Cannot join channel (+b) - you are banned' ] }
[INFO] 00:28:22 Restarting
error: { prefix: 'verne.freenode.net',
  server: 'verne.freenode.net',
  command: 'err_bannedfromchan',
  rawCommand: '474',
  commandType: 'error',
  args:
   [ 'jiyinyiyong',
     '#ubuntu',
     'Cannot join channel (+b) - you are banned' ] }

But why is this and what do I suppose to do to fix it?

@katanacrimson
Copy link
Contributor

Not a bug. Read your error messages, too. That +b is a bit of a hint.

Try looking into freenode's nickserv.

@tiye
Copy link
Author

tiye commented Apr 19, 2014

It's probably a problem on the poor docmentation. I did my search, but the API docs seems not to cover the part about examples of sending messages like that:

/msg nickserv register <password> <email>

referal: http://www.wikihow.com/Register-a-User-Name-on-Freenode

@katanacrimson
Copy link
Contributor

You should probably read the IRC RFC (1459 if memory serves) first before complaining about the documentation. Knowledge of the RFC (and it's a rather short one) is a prerequisite to building bots or clients around IRC itself.

Plus, networks are rather individual in implementation of the protocol and enforcement of nick registration, authentication, etc.

@tiye
Copy link
Author

tiye commented Apr 20, 2014

Well, I think whether the basic steps of running an IRC client should be documented depends on your opinion. I think the steps are, 1) install module, copy code and receive messages from server, 2) read IRC protocol(thanks for the link), 3) build a client. And I'm on 1).

@katanacrimson
Copy link
Contributor

Understanding the protocol is a requirement of implementing it. You're not going to do webdev without knowing the basics of HTTP, and you can't do IRC without knowing the protocol basics either.

@tiye
Copy link
Author

tiye commented Apr 20, 2014

I'm agree on your opinion. But take your example of HTTP, my opinion is when people want to learn HTTP, he does, 1) copy code and make stupid page with HTML/CSS/JavaScript, 2) learn how HTTP works, 3) go on to build server. And I don't think it's good when you put 1) as a part of 3).
I have to move the question to StackOverflow if you think it's not belong here.

Anyway is out of topic now. Closing.

@tiye tiye closed this as completed Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants