Sheogorath
46efd78734
Fix nickname error responses to match RFC
6 years ago
Sheogorath
fd860b54ee
Implement channel parting on the channel object
This patch allows the channel to part users from it. This provides the
basics for the future implementation of the PART command.
6 years ago
Sheogorath
ba6a424bfe
Implement non-direct messages to users
In order to send channel messages, we need to set a different target
than the user himself. This patch adds a new parameter `to` to the
`sendMsg()` function of the user object and allows to provide a string
as target.
This uses by default the user's nickname as target, which makes the
parameter optional and doesn't break the existing interface.
6 years ago
Sheogorath
b7bc3f3d4c
Remove external grab into the object
This change removes server object interacting with an internal variable
from the user object creation and reduces the amount of code from 3 to 1
line. This also simplifies future testing.
6 years ago
Sheogorath
4ac6e94b60
Remove unused setPassword function
6 years ago
Sheogorath
a9c6b0d1dc
Rework user.sendMsg() to use user.sendRaw()
6 years ago
Sheogorath
394384689b
Add ability to join channel with multiple users
Joining channels allone is nice, but defeats the purpose of channels.
This patch adds the ability to join a channel with multiple users.
6 years ago
Sheogorath
233a9aef72
Add concept of channels and allow users to create them
6 years ago
wayne
f816cd1ada
added test case to not send to unregistered users
6 years ago
Sheogorath
0768520839
Fix password comand behavior to match real protocol
6 years ago
Sheogorath
7cff627c6e
Fix: Add server prefix to indicate server notices
6 years ago
Sheogorath
6888af127b
Fix: Real world messages
IRC is specified to have `\r\n` at the end of each command. If not
messages are not considered complete.
This patch fixes our implementation to answer with real command aka.
things that end with `\r\n`.
6 years ago
Wayne
3b00c69e07
added command_pass test + implementation
6 years ago
Wayne
53f75858bb
finished command_quit command tests
6 years ago
Sheogorath
c249bda7e0
Feature: Add PRIVMSG command
6 years ago
Wayne
b9d4d6b2f3
added command_quit command
6 years ago
Sheogorath
7d02c4d4a5
Feature: Add USER command
6 years ago
Sheogorath
08125c3788
Fix nickname handling
IRC doesn't send an answer when nickname is changed. It only sends a
message back on error.
6 years ago
Sheogorath
55b8e0dedd
Refactor: Move userlist to server object
6 years ago
Sheogorath
b0cd18967b
Feature: Add function to recieve userlist
6 years ago
Wayne
c30cd7a5cb
added realname variable + setter method
6 years ago
Wayne
9937934443
added NICK no NICK given test + implementation with new errorcode
6 years ago
Sheogorath
1662775da7
Refactor nick implementation to use a global userlist
6 years ago
Sheogorath
26852d825b
Refactor: Abstracted uppercase tokenized command
6 years ago
Wayne Colin Abel
d7e5858910
added RFC 1459 4.1.2 Nick message and some constants
6 years ago
Sheogorath
d4a4e8a69d
Initial IRC server commit
6 years ago