Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; User Section
- on *:text:*:?: {
- }
- ctcp 1:newacct:*: {
- var %tpass = $sha1($3) | var %sql = INSERT OR REPLACE INTO Users (UserName, UserPass, UserAccess) VALUES (?, ?, ?)
- noop $sqlite_exec(%rbp.db, %sql, $2 , %tpass , 1)
- if ($sqlite_exec(%rbp.db, %sql)) {
- notice $nick Your account has been created, and you are now logged in. For help, type /start
- }
- else {
- echo -a Error adding record to Users table, output: %sql | echo -a %sqlite_errstr
- }
- }
Add Comment
Please, Sign In to add comment