File: removing_sound_support.patch

package info (click to toggle)
jwchat 1.0%2Bdfsg-1.4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,972 kB
  • ctags: 374
  • sloc: perl: 484; xml: 462; java: 116; sh: 108; makefile: 54
file content (42 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download | duplicates (5)
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
37
38
39
40
41
42
Author: Marcelo Jorge Vieira <metal@debian.org>

--- jwchat-1.0+dfsg.orig/Makefile
+++ jwchat-1.0+dfsg/Makefile
@@ -12,8 +12,6 @@ install:
 		cp ./src/*.css ./htdocs; \
 		echo "Copying Images ...";\
 		cp -r ./src/images ./htdocs;\
-		echo "Copying Sounds ...";\
-		cp -r ./src/sounds htdocs;\
 		echo ""; \
 	fi
 	@./scripts/templateparser.pl;
--- jwchat-1.0+dfsg.orig/src/jwchat.html
+++ jwchat-1.0+dfsg/src/jwchat.html
@@ -55,7 +55,7 @@ var onlmsg = '';
 var onlprio = '8';
 var autoPopup = true;
 var autoPopupAway = false;
-var playSounds = true;
+var playSounds = false;
 var focusWindows = true;
 var timestamps = false;
 var usersHidden = false;
@@ -259,7 +259,7 @@ function soundLoaded() {
 }
 
 function playSound(action) {
-  if (!playSounds)
+  /*if (!playSounds)
     return;
 
   if(!SOUNDS[action]) {
@@ -280,7 +280,7 @@ function playSound(action) {
   var html = "<embed src=\""+SOUNDS[action]+"\" width=\"1\" height=\"1\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\">";
   frameD.open();
   frameD.write(html);
-  frameD.close();
+  frameD.close();*/
 }