Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/irclj/process.clj
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@
(alter irc update-in [:channels (first params) :users] dissoc nick))
(events/fire irc :part m))

(defmethod process-line "QUIT" [{:keys [nick params] :as m} irc]
(dosync
(alter irc update-in [:channels (first params) :users] dissoc nick))
(events/fire irc :part m))

;; Modes are complicated. Parsing them and trying to update a bunch of data properly
;; would be error-prone and pointless. Instead, we'll just let clients do that if
;; they really want to. However, we will go ahead and request the MODE from IRC
Expand Down