use buffer passed by callback

when a user types in a command, the associated buffer is not necessarily
the same as returned by weechat.current_buffer (e.g. relay client)
Merge pull request #50 from tribut/current-buffer-nonoptional

use buffer passed by callback (buf argument required)