From c0312bbbe5c9b164cdc23fcbd822dbb3ed0bb56e Mon Sep 17 00:00:00 2001 From: erwanlr Date: Mon, 11 Mar 2013 17:28:32 +0100 Subject: [PATCH] WpUser code factoring --- lib/wpscan/wp_user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wpscan/wp_user.rb b/lib/wpscan/wp_user.rb index 2734b9b5..019e05ad 100644 --- a/lib/wpscan/wp_user.rb +++ b/lib/wpscan/wp_user.rb @@ -63,7 +63,7 @@ class WpUser end def ==(other) - other.name == self.name and other.id == self.id and other.nickname == self.nickname + self === other end def ===(other) @@ -71,6 +71,6 @@ class WpUser end def eql?(other) - other.name === self.name and other.id === self.id and other.nickname === self.nickname + self === other end end