Make k:lines only match local users
Adapt to the style used by the sendMessage function
Revert "Adapt to the style used by the sendMessage function"; apparently python complains about that.

This reverts commit 5b8b481d50ab6771dc50c6a9ada8a3f8e334ddc8.
Fix error handling of int()
Stop the monitor command from preventing connections