Changeset 31bf8409057e2901b16a35810545682a2fbf8c31
- Timestamp:
- 12/13/09 23:56:07 (9 months ago)
- Author:
- Stephen Bennett <spb@…>
- Parents:
- 1c6e8d1ac50e0b9c3fa59ce2d61b8d74e49235b3
- Children:
- eb450c826099602e236f2f25e3bcd12cca2e42f7
- git-committer:
- Stephen Bennett <spb@exherbo.org> / 2009-12-13T23:56:07Z+0000
- Message:
-
Don't be silly.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r9d997c9
|
r31bf840
|
|
| 49 | 49 | |
| 50 | 50 | if (! defined $response) { |
| 51 | | die RPC::Atheme::Error(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR); |
| | 51 | die RPC::Atheme::Error->new(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | if (ref $response) { |
| 55 | | die RPC::Atheme::Error($response); |
| | 55 | die RPC::Atheme::Error->new($response); |
| 56 | 56 | } |
| 57 | 57 | |
| … |
… |
|
| 90 | 90 | ); |
| 91 | 91 | |
| 92 | | die RPC::Atheme::Error(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR) unless $result; |
| 93 | | die RPC::Atheme::Error($result) if ref $result eq 'HASH'; |
| | 92 | die RPC::Atheme::Error->new(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR) unless $result; |
| | 93 | die RPC::Atheme::Error->new($result) if ref $result eq 'HASH'; |
| 94 | 94 | return $result; |
| 95 | 95 | } |
| … |
… |
|
| 102 | 102 | 'atheme.logout', $self->{__authcookie}, $self->{__username}); |
| 103 | 103 | |
| 104 | | die RPC::Atheme::Error(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR) unless $result; |
| 105 | | die RPC::Atheme::Error($result) if ref $result eq 'HASH'; |
| | 104 | die RPC::Atheme::Error->new(RPC::Atheme::Error::rpc_error, $RPC::XML::ERROR) unless $result; |
| | 105 | die RPC::Atheme::Error->new($result) if ref $result eq 'HASH'; |
| 106 | 106 | return $result; |
| 107 | 107 | } |