summaryrefslogtreecommitdiff
path: root/replay.c
diff options
context:
space:
mode:
Diffstat (limited to 'replay.c')
-rw-r--r--replay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay.c b/replay.c
index d09bd8d..5dcf5e6 100644
--- a/replay.c
+++ b/replay.c
@@ -356,7 +356,7 @@ int lastspokesecondsago(char *nick, char *basedir) {
// Was it said by our 'nick'? Disable extractnickfromprefix() debugging
// as it gets very noisy when we call it from here.
extractnickfromprefix(tokens[1], 0);
- if (strncmp(tokens[1], nick, strlen(nick))) {
+ if ((strlen(tokens[1]) == strlen(nick)) && (strncmp(tokens[1], nick, strlen(nick)))) {
// Not our 'nick', continue
continue;
}