1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
diff -ru xchat-1.8.10/src/common/inbound.c xchat-1.8.10p3/src/common/inbound.c
--- xchat-1.8.10/src/common/inbound.c Wed Aug 7 20:15:59 2002
+++ xchat-1.8.10p3/src/common/inbound.c Tue Aug 13 16:10:21 2002
@@ -243,19 +243,21 @@
if (EMIT_SIGNAL (XP_CHANACTION, sess, chan, from, text, NULL, fromme) == 1)
return;
- if (is_channel (serv, chan) || fromme)
+ if (!fromme)
{
- sess = find_channel (chan, serv);
- if (!fromme && sess)
- if (fe_is_beep (sess) || prefs.beepchans)
+ if (is_channel (serv, chan))
+ {
+ sess = find_channel (chan, serv);
+ if (sess)
+ if (fe_is_beep (sess) || prefs.beepchans)
+ fe_beep ();
+ } else
+ {
+ /* it's a private action! */
+ sess = find_dialog (serv, from);
+ if (((sess) && fe_is_beep (sess)) || prefs.beepmsg)
fe_beep ();
- }
- else
- {
- /* it's a private action! */
- sess = find_dialog (serv, from);
- if (((sess) && fe_is_beep (sess)) || prefs.beepmsg)
- fe_beep ();
+ }
}
if (!sess && !is_channel (serv, chan) && prefs.autodialog)
|