projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6aa6d4b
)
'go' and 'gotofirst' are both accepted
author
Art Cancro
<ajc@citadel.org>
Tue, 11 Jan 2011 20:00:21 +0000
(15:00 -0500)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 13:54:58 +0000
(13:54 +0000)
webcit/webcit.c
patch
|
blob
|
history
diff --git
a/webcit/webcit.c
b/webcit/webcit.c
index 5fbe26169cece7456d4f68bf2657476525dccb21..9762311cc934152787d698f960bf5da20a0ebae0 100644
(file)
--- a/
webcit/webcit.c
+++ b/
webcit/webcit.c
@@
-750,7
+750,7
@@
void session_loop(void)
(WCC->Hdr->HR.eReqType != eHEAD);
/*
(WCC->Hdr->HR.eReqType != eHEAD);
/*
- * If a 'go' parameter has been specified, attempt to goto that room
+ * If a 'go'
(or 'gotofirst')
parameter has been specified, attempt to goto that room
* prior to doing anything else.
*/
if (havebstr("go")) {
* prior to doing anything else.
*/
if (havebstr("go")) {
@@
-758,8
+758,15
@@
void session_loop(void)
lprintf(9, "Explicit room selection: %s\n", bstr("go"));
ret = gotoroom(sbstr("go")); /* do quietly to avoid session output! */
if ((ret/100) != 2) {
lprintf(9, "Explicit room selection: %s\n", bstr("go"));
ret = gotoroom(sbstr("go")); /* do quietly to avoid session output! */
if ((ret/100) != 2) {
- lprintf(1, "GOTOFIRST: Unable to change to [%s]; Reason: %d\n",
- bstr("go"), ret);
+ lprintf(1, "Unable to change to [%s]; Reason: %d\n", bstr("go"), ret);
+ }
+ }
+ else if (havebstr("gotofirst")) {
+ int ret;
+ lprintf(9, "Explicit room selection: %s\n", bstr("gotofirst"));
+ ret = gotoroom(sbstr("gotofirst")); /* do quietly to avoid session output! */
+ if ((ret/100) != 2) {
+ lprintf(1, "Unable to change to [%s]; Reason: %d\n", bstr("gotofirst"), ret);
}
}
}
}