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

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

Comments

Projects
None yet
3 participants

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

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 Jan 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment