Set correct localvar type for threads in pms
Set correct localvar type for threads in pms

Previously threads in pms had localvar type set to channel. Now the type
is set to the same as the parent channel.

Fixes #789

wee-slack/wee-slack,rawdigits/wee-slack