$func and $file were inverted

the correct way for adding a hook is:  file|class::method#

Signed-off-by: Suki <suki@missallsunday.com>