aboutsummaryrefslogtreecommitdiffstats
path: root/otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'otr.c')
-rw-r--r--otr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/otr.c b/otr.c
index b45955d2..c17331a8 100644
--- a/otr.c
+++ b/otr.c
@@ -1735,6 +1735,9 @@ OtrlPrivKey *match_privkey(irc_t *irc, const char **args)
}
*p = '\0';
+ /* remove trailing whitespace */
+ g_strchomp(prefix);
+
/* find first key which matches the given prefix */
n = strlen(prefix);
for (k = irc->otr->us->privkey_root; k; k = k->next) {