Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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) {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if ($readini(udata.ini,$address,access) != Admin) {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($readini(udata.ini,$address,status) == suspended) {
- msg $chan [ERROR] You are under suspension.
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) {
- /nick $2
- 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) {
- msg $chan [ERROR] You are not authenticated. Type !login to authenticate.
- 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 ison $2) && $readini(udata.ini,$address,access) != $null {
- msg $chan [ERROR] I am already in $2 $+ .
- halt
- }
- else {
- msg p invite $2
- timer 1 1 join $2
- timer 1 1 msg $chan I have attempted to join $2 $+ . Please ensure I have access in $2 if it is set to invite only or if it is keyed.
- halt
- } }
- on *:TEXT:!part*:#:{
- if ($readini(udata.ini,$address,access) != $null) && !$2 {
- msg $chan [SYNTAX] !nick <channel>.
- 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) == $null) {
- msg $chan [ERROR] You do not have the right privleges to perform this command.
- halt
- }
- if ($me ison $2) && $readini(udata.ini,$address,access) != $null {
- part $2 Leaving on request by $readini(udata.ini,$address,pnick) $+ .
- msg $chan I have parted $2 $+ .
- halt
- }
- else {
- msg $chan [ERROR] I am not in $2 $+ , so I therefore cannot part $2 $ + !
- halt
- } }
- 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 {
- 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 {
- 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) == 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) == suspended {
- msg $chan [ERROR] User already exists: $+ $2 $+ . Their current status is Suspended 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(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 pnick $2
- writeini adata.ini $2 sponser $readini(udata.ini,$address,pnick)
- writeini adata.ini $2 status active
- msg p adduser #cruiser $2 400
- msg $chan Successfully added $2 as an Administrator.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Administrator. For a list of commands, type !help.
- 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 sponser $readini(udata.ini,$address,pnick)
- 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 adduser #cruiser $2 400
- mode #cruiser +o $readini(adata.ini,$2,nick)
- msg $chan Successfully added $2 as an Administrator.
- msg $readini(adata.ini,$2,nick) $readini(udata.ini,$address,pnick) has just added you as an Administrator.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Administrator. For a list of commands, type !help.
- 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 pnick $2
- writeini adata.ini $2 sponser $readini(udata.ini,$address,pnick)
- writeini adata.ini $2 status active
- msg p adduser #cruiser $2 100
- msg $chan Successfully added $2 as an Operator.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Operator. For a list of commands, type !help.
- 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 sponser $readini(udata.ini,$address,pnick)
- 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 adduser #cruiser $2 100
- mode #cruiser +o $readini(adata.ini,$2,nick)
- msg $chan Successfully added $2 as an Operator.
- msg $readini(adata.ini,$2,nick) $readini(udata.ini,$address,pnick) has just added you as an Operator. For a list of commands, type !help.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Operator. For a list of commands, type !help.
- 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 pnick $2
- writeini adata.ini $2 sponser $readini(udata.ini,$address,pnick)
- writeini adata.ini $2 status active
- msg p adduser #cruiser $2 25
- msg $chan Successfully added $2 as Member.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Member. For a list of commands, type !help.
- 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 sponser $readini(udata.ini,$address,pnick)
- 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 adduser #cruiser $2 25
- mode #cruiser +v $readini(adata.ini,$2,nick)
- msg $chan Successfully added $2 as Member.
- msg $readini(adata.ini,$2,nick) $readini(udata.ini,$address,pnick) has just added you as a Member. For a list of commands, type !help.
- msg p note send $2 $readini(udata.ini,$address,pnick) has just added you as an Member. For a list of commands, type !help.
- 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: $3 $+ .
- halt
- }
- }
- on *:TEXT:!access*:#:{
- if ($readini(udata.ini,$address,access) == Admin) && !$3) {
- msg $chan [SYNTAX] !access <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,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*:?:{
- 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,pnick) == $null) {
- msg $nick [ERROR] You are not authenticated. Type !login to authenticate.
- halt
- }
- if (readini(udata.ini,$address,access) == Admin) && !$2 {
- msg $nick [SYNTAX] !remove <pnick>
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) == $null {
- msg $nick [ERROR] Unknown user: $2 $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) != $null && $readini(adata.ini,$2,nick) != $null {
- remini adata.ini $2 automode
- remini adata.ini $2 access
- writeini adata.ini $2 status removed
- remini udata.ini $readini(adata.ini,$2,address) access
- remini udata.ini $readini(adata.ini,$2,address) automode
- msg $nick Successfully removed $readini(adata.ini,$2,pnick) $+ 's access.
- mode #cruiser +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- kick #cruiser $readini(adata.ini,$2,nick) Your access has been removed by $readini(udata.ini,$address,pnick) $.
- msg p note send $readini(adata.ini,$2,pnick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- msg p remuser #cruiser $2
- msg $readini(adata.ini,$2,nick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) != $null && $readini(adata.ini,$2,nick) == $null {
- remini adata.ini $2 automode
- remini adata.ini $2 access
- writeini adata.ini $2 status removed
- msg $nick Successfully removed $readini(adata.ini,$2,pnick) $+ 's access.
- mode #cruiser +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- msg p remuser #cruiser $2
- msg p note send $readini(adata.ini,$2,pnick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- 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,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] !remove <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,access) != $null && $readini(adata.ini,$2,nick) != Not authed {
- remini adata.ini $2 automode
- remini adata.ini $2 access
- writeini adata.ini $2 status removed
- msg $chan Successfully removed $readini(adata.ini,$2,pnick) $+ 's access.
- mode #cruiser +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- kick #cruiser $readini(adata.ini,$2,nick) Your access has been removed by $readini(udata.ini,$address,pnick) $.
- timer 1 1800 mode #cruiser -b $readini(adata.ini,$2,nick)
- msg p note send $readini(adata.ini,$2,pnick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- msg p remuser #cruiser $2
- msg $readini(adata.ini,$2,nick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- halt
- }
- if ($readini(udata.ini,$address,access) == Admin) && $readini(adata.ini,$2,access) != $null && $readini(adata.ini,$2,nick) == Not authed {
- remini adata.ini $2 automode
- remini adata.ini $2 access
- writeini adata.ini $2 status removed
- msg $chan Successfully removed $readini(adata.ini,$2,pnick) $+ 's access.
- mode #cruiser +b *!* $+ @ $+ $readini(adata.ini,$2,pnick) $+ .users.netgamers.org
- msg p remuser #cruiser $2
- msg p note send $readini(adata.ini,$2,pnick) Your access has been removed by $readini(udata.ini,$address,pnick) $+ .
- halt
- } }
- on *:TEXT:plank.add*:?:{
- 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,10) $read(users.txt,$11)
- halt
- } else { msg $me plank.add $chan $readini(udata.ini,$address,pnick) $read(users.txt, $+ [ %search ] ) }
- if ($nick == $me) && $readini(adata.ini,$4,status) == removed {
- msg $2 [ERROR] User: $4 is not a member anymore.
- halt
- }
- if ($nick == $me) && $3 == $readini(adata.ini,$4,pnick) {
- msg $2 You can't plank yourself, noob!
- halt
- }
- else {
- set %addpoint $+ [ $4 ] $calc($readini(adata.ini,$4,plankpoints)) + 1
- writeini adata.ini $4 todaysplankaddedpointdate. $+ $3 $date
- writeini adata.ini $5 todaysplankaddedpointreset. $+ $3 $ctime($date 23:59:59)
- writeini adata.ini $5 plankpoints %addpoint [ $+ [ $3 ] ]
- timer 1 1 unset %addpoint [ $+ [ $5 ] ]
- msg $2 Succesfully added a plank point to $3 $+ . They now have3 $readini(adata.ini,$3,plankpoints) plank points.
- halt
- }
- }
- on *:TEXT:humour.add*:?:{
- 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,10) $read(users.txt,$11)
- halt
- }
- if ($nick == $me) && $readini(adata.ini,$4,status) == removed {
- msg $2 [ERROR] User: $4 is not a member anymore.
- halt
- }
- if ($nick == $me) && $4 == $readini(udata.ini,$readini(adata.ini,$3,address),pnick) {
- msg $2 Don't be a plank, $readini(adata.ini,$3,nick) $+ ! You can't add a plank point to yourself, noob! :-|
- halt
- }
- else {
- set %addpoint $+ [ $4 ] $calc($readini(adata.ini,$4,plankpoints)) + 1
- writeini adata.ini $4 todaysplankaddedpointdate. $+ $4 $date
- writeini adata.ini $4 todaysplankaddedpointreset. $+ $4 $ctime($date 23:59:59)
- writeini adata.ini $4 plankpoints %addpoint [ $+ [ $4 ] ]
- timer 1 1 unset %addpoint [ $+ [ $4 ] ]
- msg $2 Succesfully added a plank point to $4 $+ . They now have3 $readini(adata.ini,$4,plankpoints) plank 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,$4,plankpoints) < 1 {
- msg $chan [ERROR] $3 is on 30 plank 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(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,10) $read(users.txt,$11)
- halt
- }
- else {
- set %rempoint $+ [ $4 ] $calc($readini(adata.ini,$4,plankpoints)) - 1
- writeini adata.ini $4 plankpoints %rempoint [ $+ [ $4 ] ]
- timer 1 1 unset %rempoint [ $+ [ $4 ] ]
- msg $2 Succesfully removed a plank point for $4 $+ . They now have3 $readini(adata.ini,$4,plankpoints) plank points.
- 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(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,10) $read(users.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 Succesfully removed a humour point for $4 $+ . They now have3 $readini(adata.ini,$4,humourpoints) humour points.
- halt
- } }
- on *:TEXT:!plank*:#:{
- 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(users.txt,%x)) {
- if ($3 isin $read(users.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) $read(users.txt, $+ [ %search ] ) }
- 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] 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(users.txt,%x)) {
- if ($3 isin $read(users.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) $read(users.txt, $+ [ %search ] ) }
- 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] Unknown user: $2 $+ . }
- else { msg $me humour.add $chan $readini(udata.ini,$address,pnick) $read(users.txt, $+ [ %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*:#:{
- msg $chan [ERROR] The use of hug points has been disabled by an Administrator due to a maintenance upgrade.
- halt } }
- on *:TEXT:!points*:#:{
- msg $chan [ERROR] The use of points has been disabled by an Administrator due to a maintenance upgrade.
- 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) {
- 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
- }
- }
- on *:TEXT:!seen*:#:{
- 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) == $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] Unknown user: $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