Guest User

Untitled

a guest
Oct 18th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. %filePath = "/home/mike/src/kvirc/timenames2.txt"
  2.  
  3. %nick = $0
  4. if (%nick == $null) {
  5. %nick = $me
  6. }
  7. %regex = ("(^"%nick"=)"|"(^"%nick"\\*)"|"(\\*"%nick"\\*)"|"(\\*"%nick"=)")
  8. %lines = $str.split($cr$lf, $file.read(%filePath))
  9. %cLine = $str.grep(%regex, %lines, r, 0)
  10. if (%cLine == $null) {
  11. msg $chan.name "I don't know nothin' about no foo' named" %nick"!"
  12. halt
  13. }
  14. %Timezone = $str.replace($str.rightfromfirst(%cLine, "="), " ", "%20")
  15.  
  16. %Date = ""
  17. %Data = ""
  18. %timeSocket = $new(time)
  19. %timeSocket->%name = %nick
  20. %timeSocket->%chan = $chan.name
Add Comment
Please, Sign In to add comment