diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-30 19:32:16 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-06-30 19:32:16 +0000 |
commit | 8dc849d8deb7e285491526dfeea4d68900cdba50 (patch) | |
tree | 38b4f16291b4aab4692001bea6ebfe3d1733c0b9 /src/core/enc_old.c | |
parent | 8c82d3011226b6fad600322ad807b068d420dd86 (diff) |
No real need for another constant
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2347 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/enc_old.c')
-rw-r--r-- | src/core/enc_old.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/enc_old.c b/src/core/enc_old.c index e2169faac..399caa584 100644 --- a/src/core/enc_old.c +++ b/src/core/enc_old.c @@ -356,7 +356,7 @@ class EOld : public Module int i; if (size < 16) - return EVENT_ERROR; + return EVENT_STOP; memset(&context, 0, sizeof(context)); memset(&digest, 0, sizeof(digest)); @@ -399,8 +399,8 @@ class EOld : public Module { char buf[BUFSIZE]; - if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_ERROR) - return EVENT_ERROR; + if (OnEncrypt(plaintext, strlen(plaintext), buf, sizeof(buf)) == EVENT_STOP) + return EVENT_STOP; if (memcmp(buf, password, 16) == 0) { return EVENT_ALLOW; |