[project @ 2005-07-05 07:24:59 by unknown_lamer]
authorunknown_lamer <unknown>
Tue, 5 Jul 2005 07:24:59 +0000 (07:24 +0000)
committerunknown_lamer <unknown>
Tue, 5 Jul 2005 07:24:59 +0000 (07:24 +0000)
Documentation updates, a small update to bobot-utils

ChangeLog
scripts/bobot-utils.scm

index bce144a..5626433 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-07-04  Clinton Ebadi  <clinton@unknownlamer.org>
 
+       * scripts/bobot-utils.scm (_deprecated-fun): Set
+       current-error-port to bot:logport while calling
+       issue-deprecation-warning
+
        * bobot++.texinfo: Grammar fixes on the title page
        (Configuration): Added more info on config files.
        (bot.conf): Added xrefs for server syntax and channel syntax
index b9d6b66..1892ec1 100644 (file)
  (define-macro (_deprecated-fun old-name new-name)
    `(define-public ,old-name
       (lambda args
-       (issue-deprecation-warning
-        (string-append
-         (symbol->string ',old-name)
-         " is a deprecated function. Please use "
-         (symbol->string ',new-name) " instead."))
-       (apply ,new-name args))))
+       (let ((old-error
+              (set-current-error-port (bot:logport))))
+         (issue-deprecation-warning
+          (string-append
+           (symbol->string ',old-name)
+           " is a deprecated function. Please use "
+           (symbol->string ',new-name) " instead."))
+         (bot:flushport)
+         (set-current-error-port old-error))
+         (apply ,new-name args))))
      
  (_deprecated-fun bot-load bot:load)
  (_deprecated-fun bot-action bot:action)