DoctorD90

PatchChk.tcl

Apr 16th, 2013
298
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.91 KB | None | 0 0
  1. ### PatchChk.tcl 1.0.0 Y5aZfqpT
  2.  
  3. #LICENSE
  4. # Copyright © 2013 Thomas "thommey" Sader
  5. # This program is free software. It comes without any warranty, to
  6. # the extent permitted by applicable law. You can redistribute it
  7. # and/or modify it under the terms of the Do What The Fuck You Want
  8. # To Public License, Version 2, as published by Sam Hocevar. See
  9. # http://sam.zoy.org/wtfpl/COPYING for more details.
  10.  
  11. #PATERNITY
  12. #Coder: Thommey
  13. #Network: irc.Freenode.net
  14. #Chan: #Eggdrop #EggHelp
  15.  
  16. #PURPOSE
  17. #Let's know if bot is patched or not.
  18.  
  19. #USAGE
  20. #Add this script to your eggdrop's list to load it.
  21.  
  22. ### DON'T EDIT ANYTHING BELOW ###
  23.  
  24. proc bot_patchchk { } {
  25.   catch {botonchan #\uC0A0} e
  26.   if {![string equal [string length $e] [string bytelength $e]]} {
  27.     set ::BotPatchedChk 1
  28.   } else {
  29.     set ::BotPatchedChk 0
  30.   }
  31. }
  32.  
  33. bot_patchchk
  34.  
  35. ###
  36. putlog "PatchChk.tcl LOADED"
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment