mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Removed all beep handling from text printing. If you want to beep just
send "beep" signal. /LAST -clear crashed if window contained only lastlog lines. Some other minor cleanups. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1312 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
88094fa9f2
commit
fcd8810b6c
7 changed files with 30 additions and 33 deletions
|
|
@ -45,12 +45,6 @@ static int sending_print_starting;
|
|||
|
||||
static void print_line(TEXT_DEST_REC *dest, const char *text);
|
||||
|
||||
void printbeep(void)
|
||||
{
|
||||
signal_emit_id(signal_gui_print_text, 6, active_win, NULL, NULL,
|
||||
GINT_TO_POINTER(PRINTFLAG_BEEP), "", MSGLEVEL_NEVER);
|
||||
}
|
||||
|
||||
static void printformat_module_dest(const char *module, TEXT_DEST_REC *dest,
|
||||
int formatnum, va_list va)
|
||||
{
|
||||
|
|
@ -367,7 +361,7 @@ static void msg_beep_check(SERVER_REC *server, int level)
|
|||
if (level != 0 && (level & MSGLEVEL_NOHILIGHT) == 0 &&
|
||||
(beep_msg_level & level) &&
|
||||
(beep_when_away || (server != NULL && !server->usermode_away))) {
|
||||
printbeep();
|
||||
signal_emit("beep", 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue