Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:TEXT:auth.nickchange*:?:{
- if ($nick == $me) && $readini(udata.ini,$3,access) == $null {
- msg $4 [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) != $null && $5 == $null {
- msg $4 SYNTAX] !nick <my new nickname>.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) != $null && $5 != $null {
- /nick $5
- halt
- } }
- on *:TEXT:!nick*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !nick <my new nickname>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- timer 1 1 msg $me $me auth.nickchange $nick $address $chan $2
- halt
- }
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- else {
- /nick $2
- } }
- on *:TEXT:auth.join*:?:{
- if ($nick == $me) && $readini(udata.ini,$3,access) != Admin {
- msg $4 [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin && $5 == $null {
- msg $4 [SYNTAX] !join <channel>.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin && $me isin $5 {
- msg $4 I am already in $5 $+ !
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin {
- msg P invite $5
- timer 1 3 join $5
- timer 1 1 $4 Joining channel: $5 $+ ...
- halt
- } }
- on *:TEXT:!join*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !join <channel>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- timer 1 1 msg $me auth.join $nick $address $chan $2
- halt
- }
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($me ison $2) && $readini(udata.ini,$address,access) != $null {
- msg $chan I am already in $2 $+ !
- halt
- }
- else {
- msg p invite $2
- timer 1 3 join $2
- timer 1 1 msg $chan Joining channel: $2 $+ ...
- halt
- } }
- on *:TEXT:auth.part*:?:{
- if ($nick == $me) && $readini(udata.ini,$3,access) != Admin {
- msg $4 [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin && $5 == $null {
- msg $4 [SYNTAX] !join <channel>.
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin && $me isin $5 {
- msg $4 I am already in $5 $+ !
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) == Admin {
- msg P invite $5
- timer 1 3 join $5
- timer 1 1 $4 Joining channel: $5 $+ ...
- halt
- } }
- on *:TEXT:!part*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !part <channel>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- timer 1 1 msg $me auth.part $nick $address $chan $2
- halt
- }
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($me ison $2) && $readini(udata.ini,$address,access) == Admin {
- part $2
- halt
- }
- else {
- I'm not in $2 $+ !
- } }
- on *:TEXT:auth.invite*:?:{
- if ($nick == $me) && $readini(udata.ini,$3,access) == $null {
- msg $4 [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($nick == $me) && $me isop $4 && $readini(udata.ini,$3,access) != $null && $5 == $null {
- msg $4 [SYNTAX] !invite <nickname>.
- halt
- }
- if ($nick == $me) && $me isop $4 && $readini(udata.ini,$3,access) != $null && $5 != $null {
- timer 1 1 invite $5 $4
- msg $4 $5 has been invited to $4 $+ .
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$3,access) != $null && $5 != $null {
- msg $4 [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- }
- }
- on *:TEXT:!invite*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && !$2 {
- msg $chan [SYNTAX] !invite <nick>.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- timer 1 1 msg $me auth.invite $nick $address $chan $2
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null {
- timer 1 1 invite $2 $chan
- msg $chan $2 has been invited to $chan $+ .
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!op*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Member {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null {
- mode $chan +o $2
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 == $null {
- mode $chan +o $nick
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null {
- mode $chan +o $2
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 == $null {
- mode $chan +o $nick
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!deop*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Member {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 == $me {
- msg $chan [ERROR] You may not DEOP, KICK or BAN me.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 == $me {
- msg $chan [ERROR] You may not DEOP, KICK or BAN me.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null {
- mode $chan -o $2
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 == $null {
- mode $chan -o $nick
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null {
- mode $chan -o $2
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 == $null {
- mode $chan -o $nick
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!voice*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 != $null {
- mode $chan +v $2 $3-
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 == $null {
- mode $chan +v $nick
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!devoice*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 != $null {
- mode $chan -v $2
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 == $null {
- mode $chan -v $nick
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!ban*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && !$2 {
- msg $chan [SYNTAX] !ban <pnick/nick) <reason>.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Member {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 == $me {
- msg $chan [ERROR] You cannot DEOP, KICK or BAN me.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null && $3 == $null {
- mode $chan +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- timer 1 2 kick $chan $readini(adata.ini,$2,nick) Kicked by $readini(udata.ini,$address,pnick) $+ ; No Reason Supplied.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null && $3 == $null {
- mode $chan +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- timer 1 2 kick $chan $readini(adata.ini,$2,nick) Kicked by $readini(udata.ini,$address,pnick) $+ ; No Reason Supplied.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null && $3 != $null {
- mode $chan +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- timer 1 2 kick $chan $readini(adata.ini,$2,nick) Kicked by $readini(udata.ini,$address,pnick) $+ ; $3-
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null && $3 != $null {
- mode $chan +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- timer 1 2 kick $chan $readini(adata.ini,$2,nick) Kicked by $readini(udata.ini,$address,pnick) $+ ; $3-
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so therefore I cannot fulfil your request.
- halt
- } }
- on *:TEXT:!unban*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && !$2 {
- msg $chan [SYNTAX] !unban <pnick>) <reason>.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Member {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null && $3 == $null {
- mode $chan -b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null && $3 == $null {
- mode $chan -b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Admin && $2 != $null && $3 != $null {
- mode $chan -b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == Operator && $2 != $null && $3 != $null {
- mode $chan -b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so therefore I cannot fulfil your request.
- halt
- } }
- on *:TEXT:!kick*:#:{
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && !$2 {
- msg $chan [SYNTAX] !kick <nick> <reason>.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,pnick) == $null {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) == $null {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 == $me {
- msg $chan [ERROR] You may not DEOP, KICK or BAN me.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 != $null && $3 == $null {
- kick $chan $2 Kicked by $readini(udata.ini,$address,pnick) $+ ; No Reason Supplied.
- halt
- }
- if ($me isop $chan) && $readini(udata.ini,$address,access) != $null && $2 != $null && $3 != $null {
- kick $chan $2 Kicked by $readini(udata.ini,$address,pnick) $+ ; $3-
- halt
- }
- else {
- msg $chan [ERROR] I do not hold operator (+@) status, so I therefore cannot fulfil your request.
- halt
- } }
- on *:TEXT:!adduser*:#:{
- if ($readini(udata.ini,$address,access) == Admin) && !$3 {
- msg $chan [SYNTAX] !adduser <pnick> <access level>.
- halt
- }
- if ($readini(udata.ini,$address,nick) == $null) {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == active {
- msg $chan [ERROR] User already exists: $+ $2 $+ . Their current status is $readini(adata.ini,$2,access) $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == removed {
- msg $chan [ERROR] User already exists: $+ $2 $+ . Their current status is Removed by Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == idle {
- msg $chan [ERROR] User already exists: $+ $2 $+ . Their current status is User deemed idle by Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == Admin && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { write members.txt $2
- msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan admin }
- else { msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan admin }
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == operator && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { write members.txt $2
- msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan operator }
- else { msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan operator }
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == member && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { write members.txt $2
- msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan member }
- else { msg $me adduser $2 $readini(udata.ini,$address,pnick) $chan member }
- halt
- } }
- on *:TEXT:adduser*:?:{
- if ($nick == $me) && $5 == admin && $readini(adata.ini,$2,nick) == $null {
- writeini adata.ini $2 access Admin
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- writeini adata.ini $2 plankpoints 0
- writeini adata.ini $2 humourpoints 0
- writeini adata.ini $2 hugpoints 0
- msg p adduser #cruiser 450
- msg $4 Successfully added $2 as an Administrator.
- msg p note send $2 $3 has added you as an Administrator. For a list of commands, type /me $me !help.
- halt
- }
- if ($nick == $me) && $5 == admin && $readini(adata.ini,$2,nick) != $null {
- writeini adata.ini $2 access Admin
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- writeini adata.ini $2 plankpoints 0
- writeini adata.ini $2 humourpoints 0
- writeini adata.ini $2 hugpoints 0
- writeini udata.ini $readini(adata.ini,$2,address) access Admin
- writeini udata.ini $readini(adata.ini,$2,address) automode +o
- msg p adduser #cruiser 450
- msg $4 Successfully added $2 as an Administrator.
- msg p note send $2 $3 has added you as an Administrator. For a list of commands, type /me $me !help.
- mode #cruiser +o $readini(adata.ini,$2,nick)
- halt
- }
- if ($nick == $me) && $5 == operator && $readini(adata.ini,$2,nick) == $null {
- writeini adata.ini $2 access Operator
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- msg p adduser #cruiser 100
- msg $4 Successfully added $2 as an Operator.
- msg p note send $2 $3 has added you as an Operator. For a list of commands, type /me $me !help.
- halt
- }
- if ($nick == $me) && $5 == operator && $readini(adata.ini,$2,nick) != $null {
- writeini adata.ini $2 access Operator
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- writeini adata.ini $2 plankpoints 0
- writeini adata.ini $2 humourpoints 0
- writeini adata.ini $2 hugpoints 0
- writeini udata.ini $readini(adata.ini,$2,address) access Operator
- writeini udata.ini $readini(adata.ini,$2,address) automode +o
- msg p adduser #cruiser 100
- msg $4 Successfully added $2 as an Operator.
- msg p note send $2 $3 has added you as an Operator. For a list of commands, type /me $me !help.
- mode #cruiser +o $readini(adata.ini,$2,nick)
- halt
- }
- if ($nick == $me) && $5 == member && $readini(adata.ini,$2,nick) == $null {
- writeini adata.ini $2 access Member
- writeini adata.ini $2 automode +v
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- writeini adata.ini $2 plankpoints 0
- writeini adata.ini $2 humourpoints 0
- writeini adata.ini $2 hugpoints 0
- msg p adduser #cruiser 25
- msg $4 Successfully added $2 as a Member.
- msg p note send $2 $3 has added you as a Member. For a list of commands, type /me $me !help.
- halt
- }
- if ($nick == $me) && $5 == member && $readini(adata.ini,$2,nick) != $null {
- writeini adata.ini $2 access Member
- writeini adata.ini $2 automode +v
- writeini adata.ini $2 pnick $2
- writeini adata.ini $2 sponser $3
- writeini adata.ini $2 status active
- writeini adata.ini $2 plankpoints 0
- writeini adata.ini $2 humourpoints 0
- writeini adata.ini $2 hugpoints 0
- writeini udata.ini $readini(adata.ini,$2,address) access Member
- writeini udata.ini $readini(adata.ini,$2,address) automode +v
- msg p adduser #cruiser 25
- msg $4 Successfully added $2 as a Member.
- msg p note send $2 $3 has added you as a Member. For a list of commands, type /me $me !help.
- mode #cruiser +v $readini(adata.ini,$2,nick)
- halt
- } }
- on *:TEXT:!access*:#:{
- if ($readini(udata.ini,$address,access) == Admin) && !$3 {
- msg $chan [SYNTAX] !access <user> <access level>.
- halt
- }
- if ($readini(udata.ini,$address,nick) == $null) {
- msg $me auth.access $nick $2 $3
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == admin && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me access $2 $readini(udata.ini,$address,pnick) $chan admin }
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == operator && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me access $2 $readini(udata.ini,$address,pnick) $chan operator }
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == member && $readini(adata.ini,$2,access) == $null {
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me access $2 $readini(udata.ini,$address,pnick) $chan member }
- halt
- }
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,pnick) == $null) {
- msg $chan [ERROR] Unknown user: $2 $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == admin && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) != $null {
- writeini adata.ini $2 access Admin
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 status active
- writeini udata.ini $readini(adata.ini,$2,address) access Admin
- writeini udata.ini $readini(adata.ini,$2,address) automode +o
- msg p modinfo #cruiser access $2 450
- msg p adduser #cruiser $2 450
- mode #cruiser +o $readini(adata.ini,$2,nick)
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access to Administrator.
- msg $readini(adata.ini,$2,nick) $nick $+ , $readini(udata.ini,$address,pnick) has just modified your access to Administrator.
- msg p note send $readini(adata.ini,$2,pnick) $readini(adata.ini,$2,pnick) $+ , $readini(udata.ini,$address,pnick) has just modified your access to Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == admin && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) == $null {
- writeini adata.ini $2 access Admin
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 status active
- msg p modinfo #cruiser access $2 450
- msg p adduser #cruiser $2 450
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access to Administrator.
- msg p note send $readini(adata.ini,$2,pnick) $readini(adata.ini,$2,pnick) $+ , $readini(udata.ini,$address,pnick) has just modified your access to Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == Operator && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) != $null {
- writeini adata.ini $2 access Operator
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 status active
- writeini udata.ini $readini(adata.ini,$2,address) access Operator
- writeini udata.ini $readini(adata.ini,$2,address) automode +o
- msg p modinfo #cruiser access $2 100
- msg p adduser #cruiser $2 100
- mode #cruiser +o $readini(adata.ini,$2,nick)
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access to Operator.
- msg $readini(adata.ini,$2,nick) $nick $+ , $readini(udata.ini,$address,pnick) has just modified your access to Operator.
- msg p note send $readini(adata.ini,$2,pnick) $readini(adata.ini,$2,pnick) $+ , $readini(udata.ini,$address,pnick) has just modified your access to Operator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == Operator && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) == $null {
- writeini adata.ini $2 access Operator
- writeini adata.ini $2 automode +o
- writeini adata.ini $2 status active
- msg p modinfo #cruiser access $2 100
- msg p adduser #cruiser $2 100
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access to Operator.
- msg p note send $readini(adata.ini,$2,pnick) $readini(adata.ini,$2,pnick) $+ , $readini(udata.ini,$address,pnick) has just modified your access to Operator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == Member && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) != $null {
- writeini adata.ini $2 access Member
- writeini adata.ini $2 automode +v
- writeini adata.ini $2 status active
- writeini udata.ini $readini(adata.ini,$2,address) access Member
- writeini udata.ini $readini(adata.ini,$2,address) automode +v
- msg p modinfo #cruiser modinfo access $2 25
- msg p adduser #cruiser $2 25
- mode #cruiser -o+v $readini(adata.ini,$2,nick)
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access level to Member.
- msg $readini(adata.ini,$2,nick) $nick ( $+ $readini(udata.ini,$address,pnick) $+ ) has just modified your access level to Member.
- msg p note send $readini(adata.ini,$2,pnick) $readini(udata.ini,$address,pnick) has just modified your access level to Member.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $3 == Member && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) == $null {
- writeini adata.ini $2 access Member
- writeini adata.ini $2 automode +v
- writeini adata.ini $2 status active
- msg p modinfo #cruiser access $2 25
- msg p adduser #cruiser $2 25
- msg $chan Successfully modified $readini(adata.ini,$2,pnick) $+ 's access level to Member.
- msg p note send $readini(adata.ini,$2,pnick) $readini(udata.ini,$address,pnick) has just modified your access level to Member.
- halt
- }
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- else {
- msg $chan [ERROR] Unknown access level. Please choose Admin, Operator, or Member.
- halt
- } }
- on *:TEXT:!suspend*:#:{
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && !$3 {
- msg $chan [SYNTAX] !suspend <pnick>
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) == $null {
- msg $chan [ERROR] Unknown user: $2
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == removed {
- msg $chan [ERROR] Unable to perform command; $readini(adata.ini,$2,pnick) has previously been removed by an Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == idle {
- msg $chan [ERROR] Unable to perform command; $readini(adata.ini,$2,pnick) has previously been deemed as IDLE by an Administrator.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == suspended {
- msg $chan [ERROR] Unable to perform command; $readini(adata.ini,$2,pnick) is under suspension. Time remaining until lifted: $duration($calc(%suspension. [ $+ [ $2 ] ] - $ctime))
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == approved && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) != $null && $3 < 1000 {
- remini udata.ini $readini(adata.ini,$2,address) automode
- writeini adata.ini $2 status suspended
- remini adata.ini $2 automode
- set %calc. [ $+ [ $2 ] ] $calc($3 * 60)
- set %suspension. [ $+ [ $2 ] ] $calc($ctime + %calc. [ $+ [ $2 ] ]))
- msg $readini(adata.ini,$2,nick) Hello, $readini(adata.ini,$2,nick) $+ , $nick has just suspended your access for a period of $3 minutes. To view the status of your suspension, type !status at anytime.
- msg $chan $readini(adata.ini,$2,nick) has been SUSPENDED f1or a period of $3 minutes.
- timer $time($calc($ctime + %calc. [ $+ [ $2 ] ] )) 1 1 writeini adata.ini $2 status approved
- timer $time($calc($ctime + %calc. [ $+ [ $2 ] ] )) 1 1 msg $chan $readini(adata.ini,$2,pnick) $+ 's suspension has expired.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == approved && $readini(udata.ini,$readini(adata.ini,$2,address),pnick) == $null && $3 < 1000 {
- writeini adata.ini $2 status suspended
- set %calc. [ $+ [ $2 ] ] $calc($3 * 60)
- set %suspension. [ $+ [ $2 ] ] $calc($ctime + %calc.plank))
- msg $chan $readini(adata.ini,$2,pnick) has been SUSPENDED f2or a period of $3 minutes.
- timer $time($calc($ctime + %calc.plank )) 1 1 writeini adata.ini $2 status approved
- timer $time($calc($ctime + %calc.plank )) 1 1 msg $chan $readini(adata.ini,$2,pnick) $+ 's suspension has expired.
- halt
- } }
- on *:TEXT:!idle*:#:{
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && !$2 {
- msg $chan [SYNTAX] !idle <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,status) == $null {
- msg $chan [ERROR] Unknown user: $2 $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) != $null {
- remini adata.ini $2 automode
- remini adata.ini $2 access
- writeini adata.ini $2 status idle
- msg $chan Successfully set $readini(adata.ini,$2,pnick) $+ 's account as idle.
- msg p remuser #cruiser $2
- msg p note send $readini(adata.ini,$2,pnick) Your access has been set as idle by $readini(udata.ini,$address,pnick) due to inactivity $+ . If you wish to have this removed, please contact an Administrator.
- halt
- } }
- on *:TEXT:remove.pm*:?:{
- if ($nick == $me) && $4 {
- msg $2 There is more than one user matching your query; $read(members.txt,$3) $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,9) $read(members.txt,$10)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(members.txt,$3),status) == removed {
- msg $2 [ERROR] $read(members.txt,$3) is not a member. To view their current status, type !whois $read(members.txt,$3) $+ .
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$readini(adata.ini,$read(members.txt,$3),address),nick) != $null {
- remini adata.ini $read(members.txt,$3) automode
- remini adata.ini $read(members.txt,$3) access
- writeini adata.ini $read(members.txt,$3) status removed
- remini udata.ini $readini(adata.ini,$read(members.txt,$3),address) access
- remini udata.ini $readini(adata.ini,$read(members.txt,$3),address) automode
- msg $2 Successfully removed $read(members.txt,$3) $+ 's access.
- mode #cruiser +b $readini(adata.ini,$read(members.txt,$3),address)
- kick #cruiser $read(members.txt,$3) Your access has been removed by $readini(ndata.ini,$2,pnick) $+ .
- msg p note send $read(members.txt,$3) Your access has been removed by $readini(ndata.ini,$2,pnick) $+ .
- msg p remuser #cruiser $read(members.txt,$3)
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$readini(adata.ini,$read(members.txt,$3),address),nick) == $null {
- remini adata.ini $read(members.txt,$3) automode
- remini adata.ini $read(members.txt,$3) access
- writeini adata.ini $read(members.txt,$3) status removed
- msg $2 Successfully removed $read(members.txt,$3) $+ 's access.
- mode #cruiser +b $readini(adata.ini,$read(members.txt,$3),lastaddress)
- msg p note send $read(members.txt,$3) Your access has been removed by $readini(ndata.ini,$2,pnick) $+ .
- msg p remuser #cruiser $read(members.txt,$3)
- halt
- } }
- on *:TEXT:remove.chan*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(members.txt,$4),status) == removed {
- msg $2 [ERROR] $read(members.txt,$4) is not a member. To view their current status, type !whois $read(members.txt,$4) $+ .
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$readini(adata.ini,$read(members.txt,$4),address),nick) != $null {
- remini adata.ini $read(members.txt,$4) automode
- remini adata.ini $read(members.txt,$4) access
- writeini adata.ini $read(members.txt,$4) status removed
- remini udata.ini $readini(adata.ini,$read(members.txt,$4),address) access
- remini udata.ini $readini(adata.ini,$read(members.txt,$4),address) automode
- msg $2 Successfully removed $read(members.txt,$4) $+ 's access.
- mode #cruiser +b $readini(adata.ini,$read(members.txt,$4),address)
- kick #cruiser $readini(adata.ini,$read(members.txt,$4),nick) Your access has been removed by $readini(ndata.ini,$3,pnick) $+ .
- msg p note send $read(members.txt,$4) Your access has been removed by $readini(ndata.ini,$3,pnick) $+ .
- msg p remuser #cruiser $read(members.txt,$4)
- halt
- }
- if ($nick == $me) && $readini(udata.ini,$readini(adata.ini,$read(members.txt,$4),address),nick) == $null {
- remini adata.ini $read(members.txt,$4) automode
- remini adata.ini $read(members.txt,$4) access
- writeini adata.ini $read(members.txt,$4) status removed
- msg $2 Successfully removed $read(members.txt,$4) $+ 's access.
- mode #cruiser +b $readini(adata.ini,$read(members.txt,$4),lastaddress)
- msg p note send $read(members.txt,$4) Your access has been removed by $readini(ndata.ini,$3,pnick) $+ .
- msg p remuser #cruiser $read(members.txt,$4)
- halt
- } }
- on *:TEXT:!remove*:?:{
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $nick [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if (readini(udata.ini,$address,access) == Admin) && !$2 {
- msg $nick [SYNTAX] !remove <user>
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $nick [ERROR] Unknown user: $2 $+ . }
- else { msg $me remove.pm $nick %search }
- halt
- } }
- on *:TEXT:!remove*:#:{
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if (readini(udata.ini,$address,access) == Admin) && !$2 {
- msg $chan [SYNTAX] !remove <pnick>
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me remove.chan $chan $nick %search }
- halt
- } }
- on *:TEXT:plank.add*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(members.txt,$4),status) == removed {
- msg $2 [ERROR] User: $read(members.txt,$4) is not a member anymore.
- halt
- }
- if ($nick == $me) && $3 == $readini(adata.ini,$read(members.txt,$4),pnick) {
- msg $2 [ERROR] You can't plank yourself, noob!
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,todaysplankaddedpointdate. $+ $read(members.txt,$4)) == $date {
- msg $2 [ERROR] You have already added a plank point to $read(members.txt,$4) for today. You can next add another plank point to this user in $duration($calc($readini(adata.ini,$3,todaysplankaddedpointreset. $+ $read(members.txt,$4) - $ctime))) +.
- halt
- }
- else {
- set %addpoint $+ [ $read(members.txt,$4) ] $calc($readini(adata.ini,$read(members.txt,$4),plankpoints)) + 1
- writeini adata.ini $3 todaysplankaddedpointdate. $+ $read(members.txt,$4) $date
- writeini adata.ini $3 todaysplankaddedpointreset. $+ $read(members.txt,$4) $ctime($date 23:59:59)
- writeini adata.ini $read(members.txt,$4) plankpoints %addpoint [ $+ [ $read(members.txt,$4) ] ]
- timer 1 1 unset %addpoint [ $+ [ $5 ] ]
- msg $2 Successfully added a plank point to $read(members.txt,$4) $+ . They now have3 $readini(adata.ini,$read(members.txt,$4),plankpoints) plank points.
- unset %addpoint $+ [ $read(members.txt,$4) ]
- halt
- }
- }
- on *:TEXT:humour.add*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(members.txt,$4),status) == removed {
- msg $2 [ERROR] User: $read(members.txt,$4) is not a member anymore.
- halt
- }
- if ($nick == $me) && $3 == $readini(adata.ini,$read(members.txt,$4),pnick) {
- msg $2 [ERROR] You can't humour yourself, noob!
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,todayshumouraddedpointdate. $+ $read(members.txt,$4)) == $date {
- msg $2 [ERROR] You have already added a humour point to $read(members.txt,$4) for today. You can next add another humour point to this user in $duration($calc($readini(adata.ini,$3,todayshumouraddedpointreset. $+ $read(members.txt,$4) - $ctime))) +.
- halt
- }
- else {
- set %addpoint $+ [ $read(members.txt,$4) ] $calc($readini(adata.ini,$read(members.txt,$4),humourpoints)) + 1
- writeini adata.ini $3 todayshumouraddedpointdate. $+ $read(members.txt,$4) $date
- writeini adata.ini $3 todayshumouraddedpointreset. $+ $read(members.txt,$4) $ctime($date 23:59:59)
- writeini adata.ini $read(members.txt,$4) humourpoints %addpoint [ $+ [ $read(members.txt,$4) ] ]
- timer 1 1 unset %addpoint [ $+ [ $5 ] ]
- msg $2 Successfully added a humour point to $read(members.txt,$4) $+ . They now have3 $readini(adata.ini,$read(members.txt,$4),humourpoints) humour points.
- unset %addpoint $+ [ $read(members.txt,$4) ]
- halt
- }
- }
- on *:TEXT:hug.add*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(members.txt,$4),status) == removed {
- msg $2 [ERROR] User: $read(members.txt,$4) is not a member anymore.
- halt
- }
- if ($nick == $me) && $3 == $readini(adata.ini,$read(members.txt,$4),pnick) {
- msg $2 [ERROR] You can't hug yourself, noob!
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,todayshugaddedpointdate. $+ $read(members.txt,$4)) == $date {
- msg $2 [ERROR] You have already added a hug point to $read(members.txt,$4) for today. You can next add another hug point to this user in $duration($calc($readini(adata.ini,$3,todayshugaddedpointreset. $+ $read(members.txt,$4) - $ctime))) +.
- halt
- }
- else {
- set %addpoint $+ [ $read(members.txt,$4) ] $calc($readini(adata.ini,$read(members.txt,$4),hugpoints)) + 1
- writeini adata.ini $3 todayshugaddedpointdate. $+ $read(members.txt,$4) $date
- writeini adata.ini $3 todayshugaddedpointreset. $+ $read(members.txt,$4) $ctime($date 23:59:59)
- writeini adata.ini $read(members.txt,$4) hugpoints %addpoint [ $+ [ $read(members.txt,$4) ] ]
- timer 1 1 unset %addpoint [ $+ [ $5 ] ]
- msg $2 Successfully added a hug point to $read(members.txt,$4) $+ . They now have3 $readini(adata.ini,$read(members.txt,$4),hugpoints) hug points.
- unset %addpoint $+ [ $read(members.txt,$4) ]
- halt
- }
- }
- on *:TEXT:points*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- else {
- msg $2 $+ $read(members.txt,$4) $+ has a total of3 $readini(adata.ini,$read(members.txt,$4),humourpoints) humour,3 $readini(adata.ini,$read(members.txt,$4),plankpoints) plank &3 $readini(adata.ini,$read(members.txt,$4),hugpoints) hug points.
- halt
- }
- }
- on *:TEXT:plank.remove*:?:{
- if ($nick == $me) && $readini(adata.ini,$3,access) != Admin {
- msg $chan [ERROR] You do not have the right privleges to remove plank points.
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,access) == Admin && $readini(adata.ini,$read(members.txt,$4),plankpoints) < 1 {
- msg $chan [ERROR] $read(members.txt,$4) is on 30 plank points so therefore you cannot remove anymore plank points.
- halt
- }
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- else {
- set %rempoint $+ [ $read(members.txt,$4) ] $calc($readini(adata.ini,$read(members.txt,$4),plankpoints)) - 1
- writeini adata.ini $read(members.txt,$4) plankpoints %rempoint [ $+ [ $read(members.txt,$4) ] ]
- timer 1 1 unset %rempoint [ $+ [ $read(members.txt,$4) ] ]
- msg $2 Successfully removed a plank point for $read(members.txt,$4) $+ . They now have3 $readini(adata.ini,$read(members.txt,$4),plankpoints) plank points.
- unset %rempoint $+ [ $read(members.txt,$4) ]
- halt
- } }
- on *:TEXT:hug.remove*:?:{
- if ($nick == $me) && $readini(adata.ini,$3,access) != Admin {
- msg $chan [ERROR] You do not have the right privleges to remove hug points.
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,access) == Admin && $readini(adata.ini,$read(members.txt,$4),hugpoints) < 1 {
- msg $chan [ERROR] $read(members.txt,$4) is on 30 hug points so therefore you cannot remove anymore hug points.
- halt
- }
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- else {
- set %rempoint $+ [ $read(members.txt,$4) ] $calc($readini(adata.ini,$read(members.txt,$4),hugpoints)) - 1
- writeini adata.ini $read(members.txt,$4) hugpoints %rempoint [ $+ [ $read(members.txt,$4) ] ]
- timer 1 1 unset %rempoint [ $+ [ $read(members.txt,$4) ] ]
- msg $2 Successfully removed a hug point for $read(members.txt,$4) $+ . They now have3 $readini(adata.ini,$read(members.txt,$4),hugpoints) hug points.
- unset %rempoint $+ [ $read(members.txt,$4) ]
- halt
- } }
- on *:TEXT:humour.remove*:?:{
- if ($nick == $me) && $readini(adata.ini,$3,access) != Admin {
- msg $chan [ERROR] You do not have the right privleges to remove humour points.
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$3,access) == Admin && $readini(adata.ini,$4,plankpoints) < 1 {
- msg $chan [ERROR] $3 is on 30 humour points so therefore you cannot remove anymore plank points.
- halt
- }
- if ($nick == $me) && $6 {
- msg $2 There is more than one user matching your query; $read(members.txt,$4) $read(members.txt,$5) $read(members.txt,$6) $read(members.txt,$7) $read(members.txt,$8) $read(members.txt,$9) $read(members.txt,10) $read(members.txt,$11)
- halt
- }
- else {
- set %rempoint $+ [ $4 ] $calc($readini(adata.ini,$4,humourpoints)) - 1
- writeini adata.ini $4 humourpoints %rempoint [ $+ [ $4 ] ]
- timer 1 1 unset %rempoint [ $+ [ $4 ] ]
- msg $2 Successfully removed a humour point for $4 $+ . They now have3 $readini(adata.ini,$4,humourpoints) humour points.
- halt
- unset %rempoint $+ [ $read(members.txt,$4) ]
- } }
- on *:TEXT:!plank*:#:{
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $me plank.auth
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !plank <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) && $2 == remove {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($3 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $3 $+ . }
- else { msg $me plank.remove $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me plank.add $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $2 == remove && $3 == $null {
- msg $chan [SYNTAX] !plank remove <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. To authenticate: type !login
- halt
- }
- } }
- on *:TEXT:!humour*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !humour <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) && $2 == remove {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($3 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $3 $+ . }
- else { msg $me humour.remove $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me humour.add $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $2 == remove && $3 == $null {
- msg $chan [SYNTAX] !humour remove <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. To authenticate: type !login
- halt
- }
- } }
- on *:TEXT:!hug*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !hug <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) && $2 == remove {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($3 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $3 $+ . }
- else { msg $me hug.remove $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me hug.add $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $2 == remove && $3 == $null {
- msg $chan [SYNTAX] !hug remove <pnick>.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. To authenticate: type !login
- halt
- }
- } }
- on *:TEXT:!points*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan You have a total of3 $readini(adata.ini,$readini(udata.ini,$address,pnick),humourpoints) humour,3 $readini(adata.ini,$readini(udata.ini,$address,pnick),plankpoints) plank &3 $readini(adata.ini,$readini(udata.ini,$address,pnick),hugpoints) hug points.
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) {
- var %search
- var %x 1
- while ($read(members.txt,%x)) {
- if ($2 isin $read(members.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] Unknown user: $2 $+ . }
- else { msg $me points $chan $readini(udata.ini,$address,pnick) %search }
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,pnick) == $null) {
- msg $chan [ERROR] You are not authenticated. To authenticate: type !login
- halt
- } }
- on *:TEXT:seen.user.check*:?:{
- if ($nick == $me) && $5 {
- msg $2 There is more than one user matching your query; $read(users.txt,$4) $read(users.txt,$5) $read(users.txt,$6) $read(users.txt,$7) $read(users.txt,$8) $read(users.txt,$9) $read(users.txt,$11) $read(users.txt,$12)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(users.txt,$4),seen) != $null {
- set %user $read(users.txt,$4)
- msg $2 $+ $read(users.txt,$4) ( $+ $readini(adata.ini,$read(users.txt,$4),lastaddress) $+ ) was last seen $readini(adata.ini,$read(users.txt,$4),seen) $duration($calc($ctime - % [ $+ [ $read(users.txt,$4) ] $+ seen ] )) ago.
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$read(users.txt,$4),seen) == $null {
- msg $2 [ERROR] I have no LastSeen records for $read(users.txt,$4) $+ .
- halt
- }
- }
- on *:TEXT:!seen*:#:{
- if ($readini(udata.ini,$address,pnick) == $null) {
- set %1 $nick
- set %2 $address
- msg p verify $nick
- msg $me
- halt
- }
- if ($readini(udata.ini,$address,access) == $null) {
- msg $chan [ACCESS DENIED] You do not have the right privleges to perform this command.
- halt
- }
- if (!$2) && $readini(udata.ini,$address,access) != $null {
- msg $chan [SYNTAX] !seen <user>.
- halt
- }
- if ($readini(udata.ini,$address,access) != $null) {
- var %search
- var %x 1
- while ($read(users.txt,%x)) {
- if ($2 isin $read(users.txt,%x)) { var %search $addtok(%search,%x,32) }
- inc %x
- }
- if (!%search) { msg $chan [ERROR] I have no LastSeen data for $2 $+ . }
- else { msg $me seen.user.check $chan $2 %search }
- }
- halt
- } } }
- on *:TEXT:!login*:#:{
- if ($readini(udata.ini,$address,pnick) != $null) {
- msg $chan [ERROR] You are already authenticated as $readini(udata.ini,$address,pnick) $+ .
- halt
- }
- if ($nick ison #cruiser) && $readini(udata.ini,$address,pnick) == $null {
- set %1 $nick
- set %2 $address
- msg P verify $nick
- timer 1 2 unset %1
- timer 1 2 unset %2
- halt
- }
- else {
- msg $chan [ERROR] Please join #cruiser then re-authenticate.
- halt
- }
- }
- on *:TEXT:!login*:?:{
- if ($readini(udata.ini,$address,pnick) != $null) {
- msg $nick [ERROR] You are already authenticated as $readini(udata.ini,$address,pnick) $+ .
- halt
- }
- else {
- set %1 $nick
- set %2 $address
- msg P verify $nick
- timer 1 2 unset %1
- timer 1 2 unset %2
- timer 1 3600 remini ndata.ini $readini(udata.ini,$address,nick)
- timer 1 3600 remini udata.ini $address
- timer 1 3600 remini adata.ini $readini(udata.ini,$address,pnick) nick
- timer 1 3600 remini adata.ini $readini(udata.ini,$address,pnick) address
- msg $nick You have successfully been authenticated.
- timer 1 3600 msg $nick You have been logged out for security reasons. To log back in, type: !login
- halt
- } }
Add Comment
Please, Sign In to add comment