Guest User

Untitled

a guest
Jul 15th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ; User Section
  2.  
  3. on *:text:*:?: {
  4.  
  5. }
  6.  
  7. ctcp 1:newacct:*: {
  8. var %tpass = $sha1($3) | var %sql = INSERT OR REPLACE INTO Users (UserName, UserPass, UserAccess) VALUES (?, ?, ?)
  9. noop $sqlite_exec(%rbp.db, %sql, $2 , %tpass , 1)
  10.  
  11. if ($sqlite_exec(%rbp.db, %sql)) {
  12. notice $nick Your account has been created, and you are now logged in. For help, type /start
  13. }
  14. else {
  15. echo -a Error adding record to Users table, output: %sql | echo -a %sqlite_errstr
  16. }
  17. }
Add Comment
Please, Sign In to add comment