{"id":25812581,"url":"https://github.com/daisvke/ircserv","last_synced_at":"2026-06-13T15:33:54.353Z","repository":{"id":114974226,"uuid":"564843636","full_name":"daisvke/ircserv","owner":"daisvke","description":"This project involves creating a custom IRC (Internet Relay Chat) server in C++. ","archived":false,"fork":false,"pushed_at":"2025-01-16T20:15:41.000Z","size":46361,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T09:12:43.226Z","etag":null,"topics":["42projects","cpp","irc","irc-bot","irc-server","ircserver"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daisvke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-11T16:23:54.000Z","updated_at":"2025-01-16T20:17:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e93220c0-69c8-4a46-a44f-2bf3190457cf","html_url":"https://github.com/daisvke/ircserv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daisvke/ircserv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisvke%2Fircserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisvke%2Fircserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisvke%2Fircserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisvke%2Fircserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daisvke","download_url":"https://codeload.github.com/daisvke/ircserv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daisvke%2Fircserv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285809053,"owners_count":27235102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-22T02:00:05.934Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42projects","cpp","irc","irc-bot","irc-server","ircserver"],"created_at":"2025-02-28T01:54:33.939Z","updated_at":"2025-11-22T15:03:46.253Z","avatar_url":"https://github.com/daisvke.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **ircserv**\n\n## **Description**  \nThis project involves creating a custom **IRC (Internet Relay Chat) server** in C++. The server allows clients to register, connect, and chat with each other, adhering to the IRC protocol.\n\n---\n\n## **Commands**\n\n### **Launching the Server**  \nCompile and launch the server with the following command:  \n```bash\nmake \u0026\u0026 ./ircserv \u003cport\u003e \u003cpassword\u003e\n# Example:\nmake \u0026\u0026 ./ircserv 6667 pass\n```\n\n---\n\n### **Connecting Clients**  \n#### **Using `nc` (Netcat) as a Client**  \nConnect to the server using the `nc` utility:  \n```bash\nnc -C \u003cservername\u003e \u003cport\u003e\nPASS \u003cpassword\u003e\nNICK \u003cnickname\u003e\nUSER \u003cusername\u003e \u003chostname\u003e \u003cservername\u003e \u003crealname\u003e\n# Example:\nnc -C localhost 6667\nPASS pass\nNICK myNick\nUSER user host server RealName\n```\n\n#### **Using `irssi` (Reference Client)**  \nConnect using the `irssi` client:  \n```bash\nirssi -p \u003cport\u003e -c \u003cservername\u003e -n \u003cnickname\u003e -w \u003cpassword\u003e\n# Example:\nirssi -p 6667 -c localhost -n myNick -w pass\n```\n\n#### **Connecting from Another Computer (e.g., 42 School)**  \n```bash\nirssi -p \u003cport\u003e -c \u003ccomputer_name\u003e -n \u003cnickname\u003e -w \u003cpassword\u003e\n# Example:\nirssi -p 6667 -c e1r2p5 -n myNick -w pass\n```\n\n---\n\n### **Useful `irssi` Commands**  \n- `/reconnect`: Reconnect to the server.  \n- `/clear`: Clear the current tab.  \n- **`CTRL + N`**: Toggle between tabs.\n\n---\n\n### **Setting Up and Using DCC (Direct Client-to-Client) File Transfers**  \n#### **Recipient Configuration**  \n1. **Accept low ports:**  \n   ```bash\n   /set dcc_autoaccept_lowports ON\n   ```\n2. **Automatically accept and download received files:**  \n   ```bash\n   /set dcc_autoget ON\n   ```\n3. **Set download path:**  \n   ```bash\n   /set dcc_download_path \u003cpath\u003e\n   # Example:\n   /set dcc_download_path /mnt/nfs/homes/daisvke/Documents/ircserv/\n   ```\n4. **Allow file creation during downloads:**  \n   ```bash\n   /set dcc_file_create_mode 644\n   ```\n\n#### **Sender Configuration**  \nSend a file to a recipient:  \n```bash\n/dcc send \u003crecipient_nick\u003e \u003cfile_path\u003e\n# Example:\n/dcc send luc /mnt/nfs/homes/luc/Documents/file_to_send\n```\n\n---\n\n## **Handled Commands**  \nThe server supports the following IRC commands:  \n```\nPASS   NICK   USER   WHOIS   WHO  \nOPER   QUIT   JOIN   PART    MODE  \nTOPIC  NAMES  LIST   INVITE  KICK  \nKILL   PING   PONG\n```\n\n---\n\n## **Handled Modes**  \n\n### **User Modes:**  \n| **Mode** | **Description**        |  \n|----------|------------------------|  \n| `o`      | Operator mode          |  \n\n### **Channel Modes:**  \n| **Mode** | **Description**                     |  \n|----------|-------------------------------------|  \n| `t`      | Topic protection                    |  \n| `i`      | Invite-only channel                 |  \n| `m`      | Moderated channel                   |  \n| `n`      | No external messages                |  \n| `s`      | Secret channel                      |  \n| `l`      | User limit                          |  \n| `k`      | Channel key (password)              |  \n\n### **Channel Parameter Modes:**  \n| **Mode** | **Description**                     |  \n|----------|-------------------------------------|  \n| `l`      | Limit the number of users           |  \n| `k`      | Set a password for the channel      |  \n\n---\n\n## **Screenshots**  \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"/screenshots/7-clients.png\" /\u003e\n  A scene from \u003ci\u003eLady Windermere's Fan\u003c/i\u003e, by Oscar Wilde.\n\u003c/p\u003e\n\n---\n\n## **Additional Resources**  \n1. **Modern IRC Documentation:**  \n   [https://modern.ircdocs.horse/](https://modern.ircdocs.horse/)  \n2. **IRC Protocol Examples:**  \n   [http://chi.cs.uchicago.edu/chirc/irc_examples.html](http://chi.cs.uchicago.edu/chirc/irc_examples.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisvke%2Fircserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaisvke%2Fircserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaisvke%2Fircserv/lists"}