3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 10:42:52 +01:00

do a type conversion better

This commit is contained in:
Jeremy Latt 2014-02-09 19:03:56 -08:00
parent f3da4e0286
commit 035a8f6cde

View File

@ -78,8 +78,7 @@ func (channel *Channel) receiveReplies(replies <-chan Reply) {
log.Printf("%s ← %s : %s", channel, reply.Source(), reply)
}
for client := range channel.members {
var dest Identifier = client
if reply.Source() != dest {
if reply.Source() != Identifier(client) {
client.Reply(reply)
}
}