summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-12-22 00:02:35 (GMT)
committerSamuel Lidén Borell <samuel@slbdata.se>2011-12-22 00:02:35 (GMT)
commitd931f23a56b32834f6772e03726444e70a53ffd5 (patch)
treef6318e046d16e14632a63b7cd4496ad0e081e860
parent09d0225c7ff9d24c182210a774da87b1bb59fa40 (diff)
downloadfishlim-d931f23a56b32834f6772e03726444e70a53ffd5.zip
fishlim-d931f23a56b32834f6772e03726444e70a53ffd5.tar.gz
fishlim-d931f23a56b32834f6772e03726444e70a53ffd5.tar.bz2
Fix keystore saving bug
Patch from nin101: https://gitorious.org/fishslim/fishslim/commit/126692989ae52794017b41e105a4cea21b13d65e
-rw-r--r--keystore.c4
-rw-r--r--plugin_xchat.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/keystore.c b/keystore.c
index ce029a2..d97107f 100644
--- a/keystore.c
+++ b/keystore.c
@@ -164,8 +164,8 @@ bool keystore_store_key(const char *nick, const char *key) {
encrypted = fish_encrypt(password, strlen(password), key);
if (!encrypted) goto end;
- // Prepend "OK+ "
- wrapped = g_strconcat("OK+ ", encrypted, NULL);
+ // Prepend "+OK "
+ wrapped = g_strconcat("+OK ", encrypted, NULL);
g_free(encrypted);
// Store encrypted in file
diff --git a/plugin_xchat.c b/plugin_xchat.c
index ba0e128..01f5d74 100644
--- a/plugin_xchat.c
+++ b/plugin_xchat.c
@@ -44,7 +44,7 @@
static const char plugin_name[] = "FiSHLiM";
static const char plugin_desc[] = "Encryption plugin for the FiSH protocol. Less is More!";
-static const char plugin_version[] = "0.0.14";
+static const char plugin_version[] = "0.0.15";
static const char usage_setkey[] = "Usage: SETKEY [<nick or #channel>] <password>, sets the key for a channel or nick";
static const char usage_delkey[] = "Usage: DELKEY <nick or #channel>, deletes the key for a channel or nick";