Advertisement
Guest User

simplified switch

a guest
Jan 21st, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bind pubm -|- "?[string trim $bs(cmdchar)]seen" bs_pubreq1
  2.  
  3. proc bs_pubreq1 {nick uhost hand chan text} {
  4.  
  5.   set args [split [stripcodes bcruag $text]]
  6.   switch -nocase [lindex $args 0] {
  7.         "!voir" -
  8.         "!seen" {
  9.           set who [lindex $args 1]
  10.           bs_pubreq $nick $uhost $hand $chan $who 0
  11.  
  12.         }
  13.         default {
  14.            putlog "I don't understand [lindex $args 0]"
  15.        }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement