all mode parameters are optional

Sending "MODE $target" returns the set modes for $target, currently mode() requires an extra arg. This patch makes that arg optional.