Changeset 393 for server


Ignore:
Timestamp:
11/04/11 23:41:09 (13 years ago)
Author:
nanardon
Message:
  • test variable set by user
File:
1 edited

Legend:

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

    r392 r393  
    209209    # if the variable is not 'distribution', 'release' or 'arch', Sophie 
    210210    # complains and stop 
    211     if ($var != "distribution" || $var != "release" || $var != "arch") { 
     211    if ($var != "distribution" && $var != "release" && $var != "arch") { 
    212212        return $c->stash->{xmlrpc} = { 
    213213            private_reply => 1, 
    214214            message => [ 
    215                 "'$var' is not valid ! possible parameters are : 'distribution', 
    216                 'release' and 'arch'." 
     215                "'$var' is not valid ! possible parameters are : " .  
     216                "'distribution', 'release' and 'arch'." 
    217217            ] 
    218218        } 
     
    265265    # if the variable is not 'distribution', 'release' or 'arch', Sophie 
    266266    # complains and stop 
    267     if ($var != "distribution" || $var != "release" || $var != "arch") { 
     267    if ($var != "distribution" && $var != "release" && $var != "arch") { 
    268268        return $c->stash->{xmlrpc} = { 
    269269            private_reply => 1, 
    270270            message => [ 
    271                 "'$var' is not valid ! possible parameters are : 'distribution', 
    272                 'release' and 'arch'." 
     271                "'$var' is not valid ! possible parameters are : " . 
     272                "'distribution', 'release' and 'arch'." 
    273273            ] 
    274274        } 
Note: See TracChangeset for help on using the changeset viewer.