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.
5 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.
5 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.
5 years ago
Sheogorath
4ac6e94b60
Remove unused setPassword function
5 years ago
Sheogorath
a9c6b0d1dc
Rework user.sendMsg() to use user.sendRaw()
5 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.
5 years ago
Sheogorath
233a9aef72
Add concept of channels and allow users to create them
5 years ago
wayne
f816cd1ada
added test case to not send to unregistered users
5 years ago
Sheogorath
0768520839
Fix password comand behavior to match real protocol
5 years ago
Sheogorath
7cff627c6e
Fix: Add server prefix to indicate server notices
5 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`.
5 years ago
Wayne
3b00c69e07
added command_pass test + implementation
5 years ago
Wayne
53f75858bb
finished command_quit command tests
5 years ago
Sheogorath
c249bda7e0
Feature: Add PRIVMSG command
5 years ago
Wayne
b9d4d6b2f3
added command_quit command
5 years ago
Sheogorath
7d02c4d4a5
Feature: Add USER command
5 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.
5 years ago
Sheogorath
55b8e0dedd
Refactor: Move userlist to server object
5 years ago
Sheogorath
b0cd18967b
Feature: Add function to recieve userlist
5 years ago
Wayne
c30cd7a5cb
added realname variable + setter method
5 years ago
Wayne
9937934443
added NICK no NICK given test + implementation with new errorcode
5 years ago
Sheogorath
1662775da7
Refactor nick implementation to use a global userlist
5 years ago
Sheogorath
26852d825b
Refactor: Abstracted uppercase tokenized command
5 years ago
Wayne Colin Abel
d7e5858910
added RFC 1459 4.1.2 Nick message and some constants
5 years ago
Sheogorath
d4a4e8a69d
Initial IRC server commit
5 years ago