Skip to content
Extraits de code Groupes Projets
Valider e0b9da13 rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

Fix channels joined for irc users' client

parent 781a9377
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
func (t *Transport) connected(client *irc.Conn, line *irc.Line) { func (t *Transport) connected(client *irc.Conn, line *irc.Line) {
if t.client != client { if t.client != client {
// user's client // user's client
for _, channel := range t.channels { for _, channel := range t.userChannels[client.Me().Nick] {
log.Printf("join %s", channel) log.Printf("join %s", channel)
client.Join(channel) client.Join(channel)
} }
...@@ -41,7 +41,7 @@ func (t *Transport) connected(client *irc.Conn, line *irc.Line) { ...@@ -41,7 +41,7 @@ func (t *Transport) connected(client *irc.Conn, line *irc.Line) {
func (t *Transport) disconnected(client *irc.Conn, line *irc.Line) { func (t *Transport) disconnected(client *irc.Conn, line *irc.Line) {
if t.client != client { if t.client != client {
// all should already have been cleaned // all should already have been cleaned
log.Print("%s got disconnected", client.Me()) log.Print("%s got disconnected", client.Me().Nick)
return return
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter