3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix whois; closes #32

This commit is contained in:
Jeremy Latt 2014-03-27 16:48:13 -07:00
parent ec3fcc9151
commit c2e3bbe494

View File

@ -92,12 +92,13 @@ func (clients *ClientLookupSet) FindAll(userhost Name) (set ClientSet) {
return return
} }
for rows.Next() { for rows.Next() {
var nickname Name var sqlNickname string
err := rows.Scan(&nickname) err := rows.Scan(&sqlNickname)
if err != nil { if err != nil {
Log.error.Println("ClientLookupSet.FindAll.Scan:", err) Log.error.Println("ClientLookupSet.FindAll.Scan:", err)
return return
} }
nickname := Name(sqlNickname)
client := clients.Get(nickname) client := clients.Get(nickname)
if client == nil { if client == nil {
Log.error.Println("ClientLookupSet.FindAll: missing client:", nickname) Log.error.Println("ClientLookupSet.FindAll: missing client:", nickname)