Changeset 1101


Ignore:
Timestamp:
12/15/10 11:00:06 (17 months ago)
Author:
james
Message:

some fixes!

Location:
trunk/plugins/en
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/complex_card.tcl

    r1094 r1101  
    2121                regexp -nocase "^!card( (adult))?" $text matches 1 modifier 
    2222                if {[string tolower $modifier] == "adult"} { 
    23                         bMotionDoAction $channel $nick "%%: the %VAR{card_value} of %VAR{scrap_adult_adjectives_t} %VAR{scrap_adult_construction_t:plural}" 
     23                        bMotionDoAction $channel $nick "%%: the %VAR{card_value} of %VAR{scrap_adult_adjectives_t} %VAR{scrap_adult_construction_t:strip,plural}" 
    2424                        return 1 
    2525                } 
  • trunk/plugins/en/output_VAR.tcl

    r1084 r1101  
    140140                                        if {[rand 100] > 90} { 
    141141                                                set replacement [bMotion_strip_article $replacement] 
    142                                                 set replacement "%VAR{pluralprefix} $replacement" 
    143                                                 if {[lsearch "strip" $options_list] > -1} { 
    144                                                         set replacement [bMotion_strip_article $replacement] 
     142                                                putlog "plural: options list is $options_list" 
     143                                                if {[lsearch $options_list "strip"] > -1} { 
     144                                                        set replacement "%VAR{pluralprefix:strip} $replacement" 
     145                                                } else { 
     146                                                        set replacement "%VAR{pluralprefix} $replacement" 
    145147                                                } 
    146148                                        } 
     
    164166                                        set replacement $temp 
    165167                                } 
    166                                          
     168                                "like" { 
     169                                        bMotion_putloglev d * "Learning to like $replacement during %VAR expansion" 
     170                                        bMotion_abstract_add "_bmotion_like" $replacement 
     171                                } 
     172                                "dislike" { 
     173                                        bMotion_putloglev d * "Learning to dislike $replacement during %VAR expansion" 
     174                                        bMotion_abstract_add "_bmotion_dislike" $replacement 
     175                                } 
    167176                        } 
    168177                        bMotion_putloglev 1 * "current replacement is $replacement" 
  • trunk/plugins/en/output_english.tcl

    r1098 r1101  
    6969        regsub -all "the an? " $line "the " line 
    7070 
     71        regsub -all "(an?) (his|her|the)" $line "\\1 " line 
     72 
    7173        #fix double (or more) spaces 
    7274        regsub -all "  +" $line " " line 
Note: See TracChangeset for help on using the changeset viewer.