faboussard / 42-irc

3 stars 1 forks source link

TOPIC command ready to test & other minor fix and update #38

Closed ysengoku closed 1 week ago

ysengoku commented 2 weeks ago

TOPIC command

Supported command formats:

:point_right: Show current topic of channel #42 TOPIC #42

:point_right: Set a new topic of channel #42 to "new topic"

:point_right: Unset a topic of channel #42 TOPIC #42 :

:loud_sound: Channel name and topic are separated by space. :loud_sound: For parsing complexity reason, all extra colons at the beginning of the topic are ignored in our server.


Other minor fix & update

Server class

All functions used only in Server class are set to private.

Config class

Add STATUSMSG which was missing to keyToString() function.

Channel class

Update function's name from findChannel() to channelExists().