Sheogorath
b0d5e41bd9
Add ability to send messages to channel
6 years ago
Sheogorath
353ca60a00
Fix NICK command behaviour to RFC
according to the RFC the correct response to the NICK command then it's
changing a nickname is to send a NICK command to the user from the
original nickname.
This patch changes the behaviour and removes a duplicate declearation of
the function.
6 years ago
Sheogorath
46efd78734
Fix nickname error responses to match RFC
6 years ago
Sheogorath
0251dda8ad
Add sendMsg function to channel class
This function implements sending messages to all users in a channel
while sending the channel name as target to the user's socket.
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
e879f3814e
Add real unit tests for channel
Before we tested channel implicitly by running it through the tests on
the server.js. After some learning today, it's time to add an own set of
unit tests to channel.
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
b55e1cc810
Add basic unit test file for users
After learning today that testing the leaves is more important, some
fixing for the unit test coverage towards users. Time to do better.
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
d61f97d034
added: do not expect a error message for successful QUIT commands
6 years ago
wayne
f816cd1ada
added test case to not send to unregistered users
6 years ago
Sheogorath
6ffedcd74e
Add test for wrong password
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
Sheogorath
8a00bf6cb8
Extend tests to check multi-user messages
6 years ago
Wayne
1306db1929
Merge branch 'develop' of https://gogs.informatik.hs-fulda.de/sheogorath/ircd-js into feature/command_quit
# Conflicts:
# src/server.js
# src/user.js
# test/command_quit.js
6 years ago
Wayne
53f75858bb
finished command_quit command tests
6 years ago
Sheogorath
c249bda7e0
Feature: Add PRIVMSG command
6 years ago
Wayne
08b3bfaf23
added command_quit command
6 years ago
Sheogorath
8d79593559
Revert "added realname variable + setter method"
This reverts commit d70ba0584f
.
6 years ago
Sheogorath
2d4c4d3de3
Revert "added command_nick test"
This reverts commit 6e363bc651
.
6 years ago
Wayne
b9d4d6b2f3
added command_quit command
6 years ago
Wayne
6e363bc651
added command_nick test
6 years ago
Wayne
d70ba0584f
added realname variable + setter method
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
b0cd18967b
Feature: Add function to recieve userlist
6 years ago
Wayne
403c358941
restructured test files: split up into multiple files
6 years ago
Wayne
9937934443
added NICK no NICK given test + implementation with new errorcode
6 years ago
Wayne
924f87d634
added NICK already registered test
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