summary refs log tree commit diff stats
path: root/plugins/fishlim
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2012-01-03 16:38:40 +0100
committerBerke Viktor <berkeviktor@aol.com>2012-01-03 16:38:40 +0100
commit18404054b0e7bad84c552530fa5771f38469f2d3 (patch)
tree807098a91dc2e0c83683e7673b17d32d29319d7c /plugins/fishlim
parent38a42ed51950661edd5a5ea59151795e12b259f3 (diff)
sync with fishlim head
Diffstat (limited to 'plugins/fishlim')
-rw-r--r--plugins/fishlim/Makefile2
-rw-r--r--plugins/fishlim/keystore.c4
-rw-r--r--plugins/fishlim/plugin_xchat.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/fishlim/Makefile b/plugins/fishlim/Makefile
index a1832c84..3f0e93d2 100644
--- a/plugins/fishlim/Makefile
+++ b/plugins/fishlim/Makefile
@@ -23,7 +23,7 @@ fishlim.so: $(PLUGIN_OBJECTS)
 	$(CC) -shared $(OURLINKFLAGS) $(PLUGIN_OBJECTS) -o $@
 
 test: $(TEST_OBJECTS)
-	$(CC) $(OURLINKFLAGS) $(TEST_OBJECTS) -o $@
+	$(CC) $(TEST_OBJECTS) -o $@ $(OURLINKFLAGS)
 
 
 .PHONY: all clean distclean install uninstall
diff --git a/plugins/fishlim/keystore.c b/plugins/fishlim/keystore.c
index ce029a2e..d97107fd 100644
--- a/plugins/fishlim/keystore.c
+++ b/plugins/fishlim/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/plugins/fishlim/plugin_xchat.c b/plugins/fishlim/plugin_xchat.c
index ba0e1280..01f5d747 100644
--- a/plugins/fishlim/plugin_xchat.c
+++ b/plugins/fishlim/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";