Mirror of github.com/gissleh/irc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.7 KiB

6 years ago
  1. # Protocol Samples
  2. This file contains samples from nc-ing IRC servers, useful as a quick protocol reference.
  3. ## Register
  4. Just NICK and USER without any CAP negotiation
  5. ```irc
  6. NICK test
  7. :archgisle.lan NOTICE * :*** Checking Ident
  8. :archgisle.lan NOTICE * :*** Looking up your hostname...
  9. :archgisle.lan NOTICE * :*** No Ident response
  10. :archgisle.lan NOTICE * :*** Checking your IP against DNS blacklist
  11. :archgisle.lan NOTICE * :*** Couldn't look up your hostname
  12. :archgisle.lan NOTICE * :*** IP not found in DNS blacklist
  13. USER test 8 * :Test test
  14. :archgisle.lan 001 test :Welcome to the TestServer Internet Relay Chat Network test
  15. :archgisle.lan 002 test :Your host is archgisle.lan[archgisle.lan/6667], running version charybdis-4-rc3
  16. :archgisle.lan 003 test :This server was created Fri Nov 25 2016 at 17:28:20 CET
  17. :archgisle.lan 004 test archgisle.lan charybdis-4-rc3 DQRSZagiloswxz CFILNPQbcefgijklmnopqrstvz bkloveqjfI
  18. :archgisle.lan 005 test FNC SAFELIST ELIST=CTU MONITOR=100 WHOX ETRACE KNOCK CHANTYPES=#& EXCEPTS INVEX CHANMODES=eIbq,k,flj,CFLNPQcgimnprstz CHANLIMIT=#&:15 :are supported by this server
  19. :archgisle.lan 005 test PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=TestServer STATUSMSG=@+ CALLERID=g CASEMAPPING=rfc1459 NICKLEN=30 MAXNICKLEN=31 CHANNELLEN=50 TOPICLEN=390 DEAF=D :are supported by this server
  20. :archgisle.lan 005 test TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: EXTBAN=$,&acjmorsuxz| CLIENTVER=3.0 :are supported by this server
  21. :archgisle.lan 251 test :There are 0 users and 2 invisible on 1 servers
  22. :archgisle.lan 254 test 1 :channels formed
  23. :archgisle.lan 255 test :I have 2 clients and 0 servers
  24. :archgisle.lan 265 test 2 2 :Current local users 2, max 2
  25. :archgisle.lan 266 test 2 2 :Current global users 2, max 2
  26. :archgisle.lan 250 test :Highest connection count: 2 (2 clients) (8 connections received)
  27. :archgisle.lan 375 test :- archgisle.lan Message of the Day -
  28. :archgisle.lan 372 test :- This server is only for testing irce, not chatting. If you happen
  29. :archgisle.lan 372 test :- to connect to it by accident, please disconnect immediately.
  30. :archgisle.lan 372 test :-
  31. :archgisle.lan 372 test :- - #Test :: Test Channel
  32. :archgisle.lan 372 test :- - #Test2 :: Other Test Channel
  33. :archgisle.lan 372 test :-
  34. :archgisle.lan 372 test :- Sopp sopp sopp sopp
  35. :archgisle.lan 376 test :End of /MOTD command.
  36. :test MODE test :+i
  37. ```
  38. ## CAP negotiation
  39. ```irc
  40. CAP LS 302
  41. :archgisle.lan NOTICE * :*** Checking Ident
  42. :archgisle.lan NOTICE * :*** Looking up your hostname...
  43. :archgisle.lan NOTICE * :*** No Ident response
  44. :archgisle.lan NOTICE * :*** Checking your IP against DNS blacklist
  45. :archgisle.lan NOTICE * :*** Couldn't look up your hostname
  46. :archgisle.lan NOTICE * :*** IP not found in DNS blacklist
  47. :archgisle.lan CAP * LS :account-notify account-tag away-notify cap-notify chghost echo-message extended-join invite-notify multi-prefix server-time tls userhost-in-names
  48. CAP REQ :server-time userhost-in-names
  49. :archgisle.lan CAP * ACK :server-time userhost-in-names
  50. CAP REQ multi-prefix away-notify
  51. :archgisle.lan CAP * ACK :multi-prefix
  52. CAP END
  53. NICK test
  54. USER test 8 * :test
  55. :archgisle.lan 001 test :Welcome to the TestServer Internet Relay Chat Network test
  56. ```
  57. ## Channel joining
  58. ```irc
  59. JOIN #Test
  60. :test!~test@127.0.0.1 JOIN #Test
  61. :archgisle.lan 353 test = #Test :test @Gisle
  62. :archgisle.lan 366 test #Test :End of /NAMES list.
  63. :Gisle!~irce@10.32.0.1 PART #Test :undefined
  64. :Gisle!~irce@10.32.0.1 JOIN #Test
  65. ```
  66. ## Setting modes
  67. ```irc
  68. :test MODE test :+i
  69. JOIN #Test
  70. :Testify!~test@127.0.0.1 JOIN #Test
  71. :archgisle.lan 353 Testify = #Test :Testify @Gisle
  72. :archgisle.lan 366 Testify #Test :End of /NAMES list.
  73. :Gisle!~irce@10.32.0.1 MODE #Test +osv Testify Testify
  74. :Gisle!~irce@10.32.0.1 MODE #Test +N-s
  75. ```