chachin. Here is it:
on $*:action:$(/(^| )(hu(g|ggle)s?) \Q $+ $replacecs($me,\E,\E\\E\Q) $+ \E( |$)/iS):*:{
.ignore -cpu3 $nick 2 | var %2 = $regml(2)
.describe $iif(#,#,$nick) $iif(s !isin $right(%2,1),$+(%2,s),%2) $nick
}
When a person hugs you, the code will hug him or her back. This works for both PM and channel. There is a trigger protection from whomever hugs you every 3 seconds only.