summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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";