[Commit] rrserver dispatch.5c,1.3,1.4 protocol,1.11,1.12
Keith Packard
commit@keithp.com
Thu, 29 May 2003 01:32:21 -0700
Committed by: keithp
Update of /local/src/CVS/rrserver
In directory home.keithp.com:/tmp/cvs-serv16096
Modified Files:
dispatch.5c protocol
Log Message:
Tag messages with author
Index: dispatch.5c
===================================================================
RCS file: /local/src/CVS/rrserver/dispatch.5c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dispatch.5c 29 May 2003 08:28:45 -0000 1.3
+++ dispatch.5c 29 May 2003 08:32:19 -0000 1.4
@@ -186,9 +186,12 @@
void message (string text) {
File::fprintf (f, "MESSAGE\n");
- Connect::iterate (void func (&Client c) {
- File::fprintf (c.f, "NOTICE MESSAGE \"%s\"\n", text);
- File::flush (c.f);
+ Connect::iterate (void func (&Client o) {
+ string u = c.user == User.none ? "anonymous" :
+ c.user.username;
+ File::fprintf (o.f, "NOTICE MESSAGE \"%s\" \"%s\"\n",
+ u, text);
+ File::flush (o.f);
});
}
Index: protocol
===================================================================
RCS file: /local/src/CVS/rrserver/protocol,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- protocol 29 May 2003 00:18:18 -0000 1.11
+++ protocol 29 May 2003 08:32:19 -0000 1.12
@@ -300,7 +300,7 @@
2.13. Message
- NOTICE MESSAGE <text>
+ NOTICE MESSAGE <username> <text>
2.14. Abandon request