Logged In: NO

both of these things can already be done, in fact they are in
the FAQ

http://www.xchat.org/faq/#q22
http://www.xchat.org/faq/#q214