That's a good idea.
You can also apparmor xchat. This profile will probably work on your machine. It works fine on mine.

Code:
# Last Modified: Mon May 14 02:51:29 2012
#include <tunables/global>

/usr/bin/xchat {
  #include <abstractions/apache2-common>
  #include <abstractions/base>

  deny capability chown,
  deny capability dac_override,
  deny capability dac_read_search,
  deny capability fsetid,
  deny capability setgid,
  deny capability setuid,
  deny capability sys_admin,
  deny capability sys_chroot,
  deny capability sys_ptrace,



  /etc/fonts/** r,
  /etc/python2.7/sitecustomize.py r,
  /home/*/.Xauthority r,
  /home/*/.cache/dconf/user rw,
  /home/*/.config/dconf/user r,
  /home/*/.config/enchant/ r,
  /home/*/.config/enchant/en_US.dic rwk,
  /home/*/.config/enchant/en_US.exc rwk,
  /home/*/.local/share/icons/ r,
  /home/*/.local/share/icons/hicolor/**/ r,
  /home/*/.local/share/mime/mime.cache r,
  /home/*/.xchat2/ r,
  owner /home/*/.xchat2/* rw,
  owner /home/*/.xchat2/** rw,
  owner /usr/bin/xchat mr,
  /usr/include/python2.7/* r,
  /usr/lib{,32,64}/** mr,
  /usr/local/lib/python2.7/*/ r,
  /usr/share/enchant/enchant.ordering r,
  /usr/share/fonts/** r,
  /usr/share/glib-2.0/schemas/gschemas.compiled r,
  /usr/share/hunspell/ r,
  /usr/share/hunspell/en_US.aff r,
  /usr/share/hunspell/en_US.dic r,
  /usr/share/icons/ r,
  /usr/share/icons/** r,
  /usr/share/mime/mime.cache r,
  /usr/share/myspell/dicts/ r,
  /usr/share/pixmaps/ r,
  /usr/share/pyshared/* r,
  /usr/share/tcltk/tcl8.5/init.tcl r,
  /usr/share/themes/Ambiance/gtk-2.0/apps/* r,
  /usr/share/themes/Ambiance/gtk-2.0/gtkrc r,
  /usr/share/themes/Default/gtk-2.0-key/gtkrc r,
  /usr/share/themes/Raleigh/gtk-2.0/gtkrc r,
  /var/cache/fontconfig/* r,
  /var/lib/dbus/machine-id r,

}
Just drop it in /etc/apparmor.d/usr.bin.xchat