Xchat::hook_print('Private Message to Dialog', sub { Xchat::command('gui color 3'); return Xchat::EAT_NONE; });