Fixed a bug in status setting which caused pidgin to segfault.
Adding status query functions.