@@ -41,16 +41,18 @@ namespace Radegast
4141{
4242 public class IMTextManager
4343 {
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 ;
5245
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 ;
5456
5557 public IMTextManager ( RadegastInstance instance , ITextPrinter textPrinter , IMTextManagerType type , UUID sessionID , string sessionName )
5658 {
@@ -154,6 +156,10 @@ private void ProcessIncomingIM(InstantMessageEventArgs e)
154156 }
155157 }
156158
159+ if ( DingOnAllIncoming )
160+ {
161+ instance . MediaManager . PlayUISound ( UISounds . IM ) ;
162+ }
157163 PrintIM ( DateTime . Now , instance . Names . Get ( e . IM . FromAgentID , e . IM . FromAgentName ) , e . IM . FromAgentID , msg ) ;
158164
159165 if ( ! AutoResponseSent && Type == IMTextManagerType . Agent && e . IM . FromAgentID != UUID . Zero && e . IM . FromAgentName != "Second Life" )
0 commit comments