From 39b48423fdda0129fdc5adc2f44b269541832623 Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Mon, 25 Jul 2016 01:29:47 +0200 Subject: [PATCH] Wrong format type in printf (%s -> %d) --- irc_callback.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc_callback.go b/irc_callback.go index 109cbb1..b562236 100644 --- a/irc_callback.go +++ b/irc_callback.go @@ -33,7 +33,7 @@ func (irc *Connection) RemoveCallback(eventcode string, i int) bool { delete(irc.events[eventcode], i) 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 } @@ -64,7 +64,7 @@ func (irc *Connection) ReplaceCallback(eventcode string, i int, callback func(*E event[i] = callback 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") }