Changeset 891 for trunk/modules/system.tcl
- Timestamp:
- 02/17/08 18:54:27 (4 years ago)
- File:
-
- 1 edited
-
trunk/modules/system.tcl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/system.tcl
r886 r891 400 400 proc bMotionLike {nick { host "" }} { 401 401 global bMotionInfo mood bMotionSettings 402 403 bMotion_putloglev 4 * "bMotionLike: $nick $host" 404 405 if {$bMotionSettings(melMode) == 1} { 406 bMotion_putloglev 3 * "like: melmode is on, i'll do anyone" 407 return 1 408 } 409 402 410 if {$host == ""} { 403 411 set host [getchanhost $nick] … … 405 413 406 414 set host "$nick!$host" 407 408 if {$bMotionSettings(melMode) == 1} {409 return 1410 }411 415 412 416 set handle [finduser $host] … … 415 419 #if i'm stoned enough, i'll sleep with anyone 416 420 if {$mood(stoned) > 20} { 421 bMotion_putloglev 3 * "like: i'm sufficiently stoned to do anyone" 417 422 return 1 418 423 } … … 420 425 #if i'm horny enough, i'll sleep with anyone 421 426 if {$mood(horny) > 10} { 427 bMotion_putloglev 3 * "like: i'm sufficiently horny to do anyone" 422 428 return 1 423 429 } 424 430 #else they can get lost 431 bMotion_putloglev 3 * "like: $host doesn't have a matching handle, so they can go away" 425 432 return 0 426 433 } 427 434 428 435 #don't like people who aren't my friends 429 if {![bMotionIsFriend $nick]} { return 0 } 436 if {![bMotionIsFriend $nick]} { 437 bMotion_putloglev 3 * "like: I don't do people I'm not friends with" 438 return 0 439 } 430 440 431 441 # we're friends, now get their gender 432 442 set gender [getuser $handle XTRA gender] 433 443 if {$gender == ""} { 444 bMotion_putloglev 3 * "like: $handle is genderless, so I'll do them. it's only 50/50 anyway. i like those odds!" 434 445 # they don't have a gender. let's assume we'd have sex with them too 435 446 return 1 … … 438 449 #they're my gender 439 450 if {($bMotionInfo(orientation) == "bi") || ($bMotionInfo(orientation) == "gay") || ($bMotionInfo(orientation) == "lesbian")} { 451 bMotion_putloglev 3 * "like: $handle is my gender and I like that" 440 452 return 1 441 453 } 454 bMotion_putloglev 3 * "like: $handle is my gender and that's not koo" 442 455 return 0 443 456 } 444 457 #they're not my gender. what now? 445 458 if {($bMotionInfo(orientation) == "bi") || ($bMotionInfo(orientation) == "straight")} { 459 bMotion_putloglev 3 * "like: $handle isn't my gender and that's not koo" 446 460 return 1 447 461 } 448 462 # that only leaves lesbian and gay who won't sleep with the opposite gender 463 bMotion_putloglev 3 * "like: nope, default case" 449 464 return 0 450 465 }
Note: See TracChangeset
for help on using the changeset viewer.
