Browse Source

WIP better support of nick clashes

master
Epi Morphism 1 month ago
parent
commit
b78b579985
2 changed files with 4 additions and 1 deletions
  1. +2
    -1
      chat.rkt
  2. +2
    -0
      private/irc-functions.rkt

+ 2
- 1
chat.rkt View File

@@ -69,7 +69,8 @@
[(get-users-reply js) => on-users]
[(get-notify js)
=> (lambda (note)
(if (equal? note "Name already taken")
(if (or (equal? note "Name already taken")
(regexp-match #rx"Unable to change name:" note))
(on-nick-collision)
(on-notify note)))]
[(get-topic js) => on-topic]


+ 2
- 0
private/irc-functions.rkt View File

@@ -146,6 +146,8 @@
(define RPL_ENDOFMOTD 376)
(define ERR_NOSUCHCHANNEL 403)
;; "<client> <channel> :No such channel"
(define ERR_ERRONEUSNICKNAME 432)
;; "<client> <nick> :Erroneus nickname"

;; channel-list related functions



Loading…
Cancel
Save