A smart alerting/logging plugin for xchats python interface