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

Cannot pass MODE command with multiple arguments #147

Closed
Fauntleroy opened this issue Feb 11, 2013 · 1 comment
Closed

Cannot pass MODE command with multiple arguments #147

Fauntleroy opened this issue Feb 11, 2013 · 1 comment

Comments

@Fauntleroy
Copy link

I'm not sure if I'm doing something wrong, or if there's a bug somewhere, but I can't seem to send MODE commands with multiple arguments, no matter how hard I try. Currently I'm trying:

irc_client.send( 'mode', '#irchub2000', '+oo', 'irchub1 irchub2000' );

but all I get in return is and error:

>>> ERROR { prefix: 'zelazny.freenode.net',
  server: 'zelazny.freenode.net',
  command: 'err_nosuchnick',
  rawCommand: '401',
  commandType: 'error',
  args: [ 'irchub', 'irchub2000', 'irchub' ] } No such nick/channel 1360543249142
@yanickrochon
Copy link

The problem I see is that, somehow, a : is inserted in front of the last argument... don't know why.

From the documentation, giving OP access to a user would require to send

MODE #channel +o user1 user2 ...

But calling the client the way you do would send MODE #irchub2000 +oo :irchub1 irchub2000

@jirwin jirwin closed this as completed Jan 29, 2016
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

3 participants