- msg = "Moved user #{src} "
-
- # Only append the extra description if it's useful.
- if not src_description.nil? and
- not src_description.empty? and
- not src_description == src.to_s() then
- msg += "(#{src_description}) "
- end
-
- msg += "to #{dst}"
-
- # Only append the extra description if it's useful.
- if not dst_description.nil? and
- not dst_description.empty? and
- not dst_description == dst.to_s() then
- msg += " (#{dst_description})"
- end
-
+ msg = "Moved user "
+ msg += add_description(src, src_description)
+ msg += " to "
+ msg += add_description(dst, dst_description)