Changeset 64


Ignore:
Timestamp:
12/03/10 13:23:52 (14 years ago)
Author:
nanardon
Message:
  • handle no command error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Chat.pm

    r38 r64  
    5252 
    5353    if ($c->get_action( $cmd, '/chat/cmd' )) { 
    54         $c->forward('/chat/cmd/' . $cmd, [ $reqspec, @args ]); 
     54        return $c->forward('/chat/cmd/' . $cmd, [ $reqspec, @args ]); 
     55    } else { 
     56        $c->stash->{xmlrpc} = { 
     57            error => 'No such command', 
     58        }; 
    5559    } 
    5660} 
Note: See TracChangeset for help on using the changeset viewer.