Changeset 15 for QuoteEngine


Ignore:
Timestamp:
10/04/06 18:17:29 (6 years ago)
Author:
james
Message:

warn users if it looks they added a quote with bad line splits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • QuoteEngine/QuoteEngine.tcl

    r7 r15  
    112112    set id [mysqlinsertid $db_handle] 
    113113    puthelp "PRIVMSG $channel :Quote \002$id\002 added" 
     114                if [regexp {[^]> ]\|[[<0-9(]} $text] { 
     115                        puthelp "PRIVMSG $nick :It's possible you didn't split the lines quite right on the quote you just added. For best results, split lines in quotes using '|' with a space each side. To delete the quote you just added and fix it, do '!quote del $id' in the channel." 
     116                } 
    114117  } 
    115118} 
Note: See TracChangeset for help on using the changeset viewer.