New commits:
commit b61827cc714dfcc996daa6803d3f41d70926a062
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libmisc: removed the bubble around real_query and reformatted it
diff --git a/ChangeLog b/ChangeLog
index 25674c8..62f33a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-12-22 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libmisc: removed the bubble around real_query and reformatted it
+
2008-12-19 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* libcast: split run_conflicts into query_conflicts and
dispel_conflicts, so they can be asked for sooner #4815
diff --git a/var/lib/sorcery/modules/libmisc b/var/lib/sorcery/modules/libmisc
index 81a9238..323cea0 100755
--- a/var/lib/sorcery/modules/libmisc
+++ b/var/lib/sorcery/modules/libmisc
@@ -100,31 +100,27 @@ function isalpha() {
## Returns true or false based on the answer given.
##
#---------------------------------------------------------------------
-function real_query() { (
+function real_query() {
+ debug "libmisc" "Running query() with the following arguments: '$1' and
'$2'"
+ local _response
- debug "libmisc" "Running query() with the following arguments: '$1' and
'$2'"
+ while true; do
+ _response=""
- while true ; do
+ if [[ -z $SILENT ]]; then
+ echo -e -n "${QUERY_COLOR}$1 [$2] ${DEFAULT_COLOR}"