@@ -41,16 +41,18 @@ namespace Radegast
41
41
{
42
42
public class IMTextManager
43
43
{
44
- private RadegastInstance instance ;
45
- private RadegastNetcom netcom { get { return instance . Netcom ; } }
46
- private ITextPrinter textPrinter ;
47
- private IMTextManagerType Type ;
48
- private UUID sessionID ;
49
- private string sessionName ;
50
- private bool AutoResponseSent = false ;
51
- private ArrayList textBuffer ;
44
+ public bool DingOnAllIncoming = false ;
52
45
53
- private bool showTimestamps ;
46
+ RadegastInstance instance ;
47
+ RadegastNetcom netcom { get { return instance . Netcom ; } }
48
+ ITextPrinter textPrinter ;
49
+ IMTextManagerType Type ;
50
+ UUID sessionID ;
51
+ string sessionName ;
52
+ bool AutoResponseSent = false ;
53
+ ArrayList textBuffer ;
54
+
55
+ bool showTimestamps ;
54
56
55
57
public IMTextManager ( RadegastInstance instance , ITextPrinter textPrinter , IMTextManagerType type , UUID sessionID , string sessionName )
56
58
{
@@ -154,6 +156,10 @@ private void ProcessIncomingIM(InstantMessageEventArgs e)
154
156
}
155
157
}
156
158
159
+ if ( DingOnAllIncoming )
160
+ {
161
+ instance . MediaManager . PlayUISound ( UISounds . IM ) ;
162
+ }
157
163
PrintIM ( DateTime . Now , instance . Names . Get ( e . IM . FromAgentID , e . IM . FromAgentName ) , e . IM . FromAgentID , msg ) ;
158
164
159
165
if ( ! AutoResponseSent && Type == IMTextManagerType . Agent && e . IM . FromAgentID != UUID . Zero && e . IM . FromAgentName != "Second Life" )
0 commit comments