Wrong format type in printf (%s -> %d)

This commit is contained in:
Thomas Jager 2016-07-25 01:29:47 +02:00
parent 4d2d36fc65
commit 39b48423fd

View File

@ -33,7 +33,7 @@ func (irc *Connection) RemoveCallback(eventcode string, i int) bool {
delete(irc.events[eventcode], i) delete(irc.events[eventcode], i)
return true return true
} }
irc.Log.Printf("Event found, but no callback found at id %s\n", i) irc.Log.Printf("Event found, but no callback found at id %d\n", i)
return false return false
} }
@ -64,7 +64,7 @@ func (irc *Connection) ReplaceCallback(eventcode string, i int, callback func(*E
event[i] = callback event[i] = callback
return return
} }
irc.Log.Printf("Event found, but no callback found at id %s\n", i) irc.Log.Printf("Event found, but no callback found at id %d\n", i)
} }
irc.Log.Printf("Event not found. Use AddCallBack\n") irc.Log.Printf("Event not found. Use AddCallBack\n")
} }