summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc3
-rw-r--r--src/plugins/guile/weechat-guile-api.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index be8d5b567..56a0b4ff1 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -41,7 +41,8 @@ Bug fixes::
* api: change type of arguments status/gnutls_rc/sock in hook_connect() callback from string to integer (in scripts)
* api: change type of argument fd in hook_fd() callback from string to integer (in scripts)
* buflist: remove recursive evaluation of extra variables (issue #1060)
- * guile: fix return value of static strings
+ * guile: return integer (0/1) instead of boolean in API functions
+ * guile: fix return value of static strings in API functions
* irc: fix CTCP PING reply when the option irc.ctcp.ping is set to non-empty value
* relay: fix parsing of CAP command without arguments in irc protocol, send ACK only if all capabilities received are OK and NAK otherwise (issue #1040)
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c
index 77c2119fa..90855de6e 100644
--- a/src/plugins/guile/weechat-guile-api.c
+++ b/src/plugins/guile/weechat-guile-api.c
@@ -68,10 +68,10 @@
}
#define API_RETURN_OK \
API_FREE_STRINGS; \
- return SCM_BOOL_T
+ return scm_from_int (1)
#define API_RETURN_ERROR \
API_FREE_STRINGS \
- return SCM_BOOL_F
+ return scm_from_int (0)
#define API_RETURN_EMPTY \
API_FREE_STRINGS; \
return scm_from_locale_string("")