Changeset 392 for server/trunk/web/lib/Sophie/Controller/Chat
- Timestamp:
- 11/04/11 23:31:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Chat/Cmd.pm
r389 r392 196 196 sub set : XMLRPC { 197 197 my ( $self, $c, $reqspec, $var, $val ) = @_; 198 198 199 # if there is no variable to fix, Sophie ask and stop 199 200 if (!$var) { 200 201 return $c->stash->{xmlrpc} = { … … 206 207 } 207 208 209 # if the variable is not 'distribution', 'release' or 'arch', Sophie 210 # complains and stop 211 if ($var != "distribution" || $var != "release" || $var != "arch") { 212 return $c->stash->{xmlrpc} = { 213 private_reply => 1, 214 message => [ 215 "'$var' is not valid ! possible parameters are : 'distribution', 216 'release' and 'arch'." 217 ] 218 } 219 } 220 221 # if there is no value to give to the variable, Sophie ask and stop 208 222 if (!$val) { 209 223 return $c->stash->{xmlrpc} = { … … 239 253 my ( $self, $c, $reqspec, $var ) = @_; 240 254 241 255 # if there is no variable to fix, Sophie ask and stop 242 256 if (!$var) { 243 257 return $c->stash->{xmlrpc} = { … … 249 263 } 250 264 265 # if the variable is not 'distribution', 'release' or 'arch', Sophie 266 # complains and stop 267 if ($var != "distribution" || $var != "release" || $var != "arch") { 268 return $c->stash->{xmlrpc} = { 269 private_reply => 1, 270 message => [ 271 "'$var' is not valid ! possible parameters are : 'distribution', 272 'release' and 'arch'." 273 ] 274 } 275 } 276 251 277 $c->forward('/user/update_data', [ $reqspec->{from}, { $var => undef } ]); 252 278
Note: See TracChangeset
for help on using the changeset viewer.