summaryrefslogtreecommitdiff
blob: 33d55cb00c0d4365cbc169980d677aa2de69774e (plain)
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
43
44
45
46
47
48
49
50
51
52
diff -uar powersoftplus-0.1.8/src/common.cpp powersoftplus-0.1.8-new/src/common.cpp
--- powersoftplus-0.1.8/src/common.cpp	2006-10-10 10:13:14.000000000 +0200
+++ powersoftplus-0.1.8-new/src/common.cpp	2007-09-02 00:40:51.000000000 +0200
@@ -55,7 +55,7 @@
 	va_list ap;
 	va_start(ap, format);
 	//fprintf(stderr, TXT_WARNING_REP, VERSION_STRING);
-	vfprintf(stderr, format, ap);
+	vfprintf(stdout, format, ap);
 	va_end(ap);
 }
 
@@ -182,7 +182,7 @@
 
 int wall_msg(const char *msg)
 {
-	FILE *wpf;
+	/*FILE *wpf;
 	wpf=popen("wall", "w");
 	if (wpf) {
 		fprintf(wpf, "%s\n%s\n\n", VERSION_STRING, msg);
@@ -190,12 +190,16 @@
 		return 1;	// success
 	} else {
 		return 0;	// failure
-	}
+	}*/
+
+	fprintf(stderr, "%s\n%s\n\n", VERSION_STRING, msg);
+
+	return 1;
 }
 
 int wall_msg_cust(const char *msg, const char *welcome)
 {
-	FILE *wpf;
+	/*FILE *wpf;
 	wpf=popen("wall", "w");
 	if (wpf) {
 		fprintf(wpf, "%s\n%s\n\n", welcome, msg);
@@ -203,6 +207,10 @@
 		return 1;	// success
 	} else {
 		return 0;	// failure
-	}
+	}*/
+
+	fprintf(stderr, "%s\n%s\n\n", welcome, msg);
+
+	return 1;
 }