Defined, not Exists user/tsbere/server_not_self
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 9 Jun 2015 14:39:21 +0000 (10:39 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 9 Jun 2015 14:39:21 +0000 (10:39 -0400)
Exists returns true even if set to undef, which we do to "reset".

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Sip/MsgType.pm

index ab6a86e..91bbbd6 100644 (file)
@@ -780,7 +780,7 @@ sub handle_sc_status {
        $protocol_version = $new_proto;
     }
 
-    unless (exists $server->{account}) {
+    unless (defined $server->{account}) {
         # If we haven't logged in yet, go ahead and
         # return the SC status anyway, arbitrarily using the
         # first account in Perl string sort order to specify