Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON *:JOIN:#:{
- if ($chan == #chanops) {
- if ($nick == $me) {
- if (!$hget(as)) { hmake as 2 | if ($exists(as.hsh)) { hload as as.hsh } }
- if ($hget(as,chancount)) { //hadd as chancount 0 }
- if ($hget(as,chans)) { //hdel as chans }
- if (!$hget(pnp)) {
- //hadd as chops $+ $chan active
- .timer 1 1 //.who #chanops
- }
- }
- else {
- if ((bots isin $address($nick,2)) && (!$hget(pnp))) {
- //hadd -u6 as chops $+ $nick active
- //.who $nick
- }
- }
- }
- }
- raw 352:*:{
- if ($hget(as,chops $+ $2) == active) { haltdef }
- if ($hget(as,chops $+ $6) == active) { haltdef }
- }
- raw 315:*:{
- if ($hget(as,chops $+ $2) == active) { haltdef | hdel as chops $+ $2 }
- if ($hget(as,chops $+ $6) == active) { haltdef | hdel as chops $+ $6 }
- }
- ON *:OP:#:{
- if ($hget(as,pstats) == On) {
- if (!$istok($hget(as,ignore),#,32)) {
- if (($opnick == $me) && ($chan != #chanops) && ($chan != #rmmbotlot) && (ophelp !isin $chan) && ($me ison #chanops)) {
- if ($nick == Chanserv) {
- if ($ialchan(*!*@bots.chanops.org,#,0) >= 1) {
- if (*botop* iswm $address($me,5)) { if ($me != $gettok($address($me,2),2,46)) { //.msg chanserv deprotect $chan $me | //.msg chanserv deop $chan $me | halt } }
- if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) + 1 ) }
- if (!$hget(as,chancount)) { //hadd as chancount 1 }
- //hadd as chans $iif($istok($hget(as,chans),#,32),$remtok($hget(as,chans),#,32),$addtok($hget(as,chans),#,32))
- opcheck
- halt
- }
- }
- if (($nick != ChanServ) && ($nick ison #chanops)) {
- if (*botop* iswm $address($me,5)) { if ($me != $gettok($address($me,2),2,46)) { //.msg chanserv deprotect $chan $me | //.msg chanserv deop $chan $me | halt } }
- if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) + 1 ) }
- if (!$hget(as,chancount)) { //hadd as chancount 1 }
- //hadd as chans $iif($istok($hget(as,chans),#,32),$remtok($hget(as,chans),#,32),$addtok($hget(as,chans),#,32))
- opcheck
- }
- if (($nick != ChanServ) && ($nick !ison #chanops)) {
- if ($ialchan(*!*@bots.chanops.org,#,0) >= 1) {
- if (*botop* iswm $address($me,5)) { if ($me != $gettok($address($me,2),2,46)) { //.msg chanserv deprotect $chan $me | //.msg chanserv deop $chan $me | halt } }
- //hadd as chans $iif($istok($hget(as,chans),#,32),$remtok($hget(as,chans),#,32),$addtok($hget(as,chans),#,32))
- if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) + 1 ) }
- if (!$hget(as,chancount)) { //hadd as chancount 1 }
- echo #chanops 4,1 $+ $timestamp [AutoStatus] >> Warning, You Were OP'd In $chan But They Are No Bot Matchs In #Chanops
- opcheck
- }
- }
- if ($nick($chan,0,h,o) == 1) { //hadd as $nick($chan,1,h,o) $iif($istok($hget(as,$hnick),#,32),$remtok($hget(as,$hnick),#,32),$addtok($hget(as,$hnick),#,32)) }
- }
- }
- }
- }
- ON *:HELP:#:{
- if ($hget(as,pstats) == On) {
- if ($chan != #chanops) {
- if (!$istok($hget(as,ignore),#,32)) {
- if (($nick == $me) && ($hnick ison #chanops) && ($hnick != $me)) {
- //hadd as $hnick $iif($istok($hget(as,$hnick),#,32),$remtok($hget(as,$hnick),#,32),$addtok($hget(as,$hnick),#,32))
- if ($hnick ishop #chanops) { //.msg Chanserv OP #chanops $hnick }
- if ($hnick !ishop #chanops) { //.msg Chanserv halfop #chanops $hnick }
- }
- if (($hnick == $me) && ($me ison #chanops)) {
- if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) + 1 ) }
- if (!$hget(as,chancount)) { //hadd as chancount 1 }
- .timer 1 3 hpmodechk
- }
- }
- }
- }
- }
- alias -l hpmodechk {
- if ($hget(as,chancount) == 0) {
- if ($me ishop #chanops) { //cs dehalfop #chanops $me }
- if ($me isop #chanops) { //cs deop #chanops $me }
- }
- if ($hget(as,chancount) == 1) {
- if (($me isop #chanops) && ($me ishop #chanops)) { //cs deop #chanops $me | halt }
- if (($me !isop #chanops) && ($me !ishop #chanops)) { //cs halfop #chanops $me | halt }
- }
- if ($hget(as,chancount) == 2) {
- if (($me !isop #chanops) && ($me ishop #chanops)) { //cs op #chanops $me | halt }
- }
- }
- ON *:DEHELP:#:{
- if ($hget(as,pstats) == On) {
- if (!$istok($hget(as,ignore),#,32)) {
- if (($nick == $me) && ($hnick ison #chanops) && ($hnick != $me)) {
- //hadd as $hnick $iif($istok($hget(as,$hnick),#,32),$remtok($hget(as,$hnick),#,32))
- if ($hnick isop #chanops) { //.msg Chanserv DEOP #chanops $hnick }
- if ($hnick ishop #chanops) { //.msg Chanserv DEhalfop #chanops $hnick }
- }
- if (($hnick == $me) && ($me ison #chanops)) {
- if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) - 1 ) }
- .timer 1 3 hpmodechk
- }
- }
- }
- }
- ON *:DEOP:#:{
- if ($hget(as,pstats) == On) {
- if (!$istok($hget(as,ignore),#,32)) {
- if ($opnick == $me) {
- if ($istok($hget(as,chans),#,32) == $true) {
- //hadd as chans $iif($istok($hget(as,chans),#,32),$remtok($hget(as,chans),#,32))
- if ($version >= 6.17) { hdec as chancount }
- if ($version <= 6.16) { if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) - 1 ) } }
- opcheck
- }
- }
- }
- }
- }
- ON *:NICK:{
- if ($timer($nick)) { .timer $+ $nick Off }
- if ($hget(as,$nick)) {
- //hadd as $newnick $hget(as,$nick)
- .timer 1 1 //hdel as $nick
- }
- }
- ON *:QUIT:{
- if ($timer($nick)) { .timer $+ $nick Off }
- if ($hget(as,$nick)) { //hdel as $nick }
- }
- ON *:KICK:{
- if ($timer($knick)) { .timer $+ $knick off }
- if ($hget(as,$knick)) {
- //hadd as $knick $iif($istok($hget(as,$knick),#,32),$remtok($hget(as,$knick),#,32))
- if ($hget(as,$knick) isop #chanops) { //.msg chanserv deop #chanops $knick | halt }
- if ($hget(as,$knick) ishop #chanops) { //.msg chanserv dehalfop #chanops $knick | halt }
- }
- }
- ON *:PART:#:{
- if ($hget(as,pstats) == On) {
- if (!$istok($hget(as,ignore),#,32)) {
- if (($hget(as,$nick)) && ($istok($hget(as,$nick),#,32) == $true)) {
- if ($hget(as,$nick) isop #chanops) { //.msg chanserv deop #chanops $nick | halt }
- if ($hget(as,$nick) ishop #chanops) { //.msg chanserv dehalfop #chanops $nick | halt }
- //hadd as $nick $iif($istok($hget(as,$nick),#,32),$remtok($hget(as,$nick),#,32))
- }
- if ($timer($nick)) { .timer $+ $nick Off }
- if ($nick == $me) {
- if ($istok($hget(as,chans),#,32) == $true) {
- //hadd as chans $iif($istok($hget(as,chans),#,32),$remtok($hget(as,chans),#,32))
- if ($version >= 6.17) { hdec as chancount }
- if ($version <= 6.16) { if ($hget(as,chancount)) { //hadd as chancount $calc( $hget(as,chancount) - 1 ) } }
- opcheck
- }
- }
- }
- }
- }
- alias -l opcheck {
- if ($hget(as,pstats) == On) {
- if ($hget(as,chancount) == 0) {
- //.msg Chanserv dehalfop #chanops $me
- //hdel as chancount
- if ((*botop* iswm $address($me,2)) && ($me !isop #chanops)) { //.cs op #chanops $me | //.cs founder #chanops $me }
- }
- if ($hget(as,chancount) == 1) {
- if (($me !isop #german_ophelp) && ($me ison #german_ophelp)) {
- //.msg chanserv op #german_ophelp $me
- }
- if ($me ishop #chanops) {
- //.msg Chanserv deop #Chanops $me
- }
- if ($me !ishop #chanops) {
- //.msg chanserv halfop #chanops $me
- if ((*botop* iswm $address($me,2)) && ($me isop #chanops)) { //.cs deop #chanops $me | //cs defounder #chanops $me }
- }
- }
- if ($hget(as,chancount) == 2) {
- if (($me !isin #german_ophelp) && ($me !isin #ophelp)) {
- if ($version >= 6.17) { echo -e 4,1 $+ $timestamp [AutoStatus] >> You are Opp'd In two rooms. Please join either #german_ophelp Or #Ophelp | echo -e 4,1 $+ $timestamp [AutoStatus] >> Du bist in zwei Channeln geoppt. Bitte joine entweder #german_ophelp oder #ophelp. }
- if ($version <= 6.16) { echo #chanops 4,1 $+ $timestamp [AutoStatus] >> You are Opp'd In two rooms. Please join either #german_ophelp Or #Ophelp | echo #chanops 4,1 $+ $timestamp [AutoStatus] >> Du bist in zwei Channeln geoppt. Bitte joine entweder #german_ophelp oder #ophelp. }
- }
- if (($me !isop #german_ophelp) && ($me ison #german_ophelp)) {
- //.msg chanserv op #german_ophelp $me
- }
- if ($me isop #chanops) {
- //.msg chanserv deprotect #chanops $me
- }
- if (($me !isop #chanops) && ($me ison #chanops)) {
- //.msg chanserv op #chanops $me
- }
- }
- if ($hget(as,chancount) == 3) {
- echo #chanops 6,1 $+ $timestamp [AutoStatus] >> You Are OP'd In 3 Channels.
- //msg chanserv protect #chanops $me
- }
- if ($hget(as,chancount) >= 4) {
- if ($version >= 6.17) { echo -e 4,1 $+ $timestamp [AutoStatus] >> Warning, You Are OP'd In ( $+ $hget(as,chancount) $+ ) Channels, Please Drop Some. }
- if ($version <= 6.16) { echo #chanops 4,1 $+ $timestamp [AutoStatus] >> Warning, You Are OP'd In ( $+ $hget(as,chancount) $+ ) Channels, Please Drop Some. }
- }
- }
- }
- alias asiggy { //hadd as ignore #arabians #arabic #Asia #Celestial_Chat #chinese #czsk #Egypt #Fear_of_Commitment #Fishing #Gays_In_German #Greece #Islam_chat #ICQ-Lebanon #israel #just_friends_german #lifestyles_in_german #Persian #Romance_in_German #russia #Science-Fiction #south_africa #Swedish #teens_german #turkey #vietnamese }
- ON *:UNLOAD:{
- if ($hget(as,chans)) { hdel as chans }
- if ($hget(as,chancount)) { hdel as chancount }
- if (!$hget(as,ignore)) { asiggy }
- if ($exists(as.hsh)) { hsave as as.hsh }
- if (!$exists(as.hsh)) { hsave as as.hsh }
- if ($hget(scab)) { hfree scab }
- if ($hget(as)) { //hfree as }
- unset %bkicknask | unset %kicknask | unset %warnask
- }
- ON *:EXIT:{
- if ($exists(as.hsh)) { hsave as as.hsh }
- if (!$exists(as.hsh)) { hsave as as.hsh }
- if ($hget(scab)) { //hfree scab }
- if ($hget(as)) { //hfree as }
- }
- alias -l ashshchk {
- if ($hget(as,chancount)) { hdel as chancount }
- if ($hget(as,chans)) { hdel as chans }
- if (!$hget(as,ignore)) { asiggy }
- if ($hget(as,ignore)) { //hdel as ignore | .timer 1 2 asiggy }
- //hdel -w as *hnick
- //hsave as as.hsh
- }
- ON *:LOAD:{
- if (!$hget(as)) { hmake as 2 }
- if ($exists(as.hsh)) { hload as as.hsh | .timer 1 2 ashshchk }
- if (!$hget(scab)) { hmake scab 1 }
- if (!$exists(as.hsh)) {
- if (%rdbanchan) { //hadd as rdchans %rdbanchan | unset %rdbanchan }
- //hadd as arabic show | //hadd as dutch show | //hadd as english show | //hadd as french show | //hadd as german show | //hadd as hindi show | //hadd as italian show | //hadd as portuguese show | //hadd as spanish show | //hadd as russian show | //hadd as turkish show
- //hadd as warnmsg Your actions are unsuitable for the channels rules. | //hadd as kickmsg Your actions are unsuitable for the channels rules. | //hadd as kickbmsg Your actions are unsuitable for the channels rules. | hadd as debug Off
- asiggy
- if (%desauto == Off) { //hadd as pstats Off | unset %desauto }
- if (%desauto == On) { //hadd as pstats On | unset %desauto }
- //hsave as as.hsh
- }
- }
- alias asreload { //hsave as as.hsh }
- ON *:CONNECT:{
- if ($network == irc.icq.com) {
- if (!$hget(scab)) { hmake scab 1 }
- if ($hget(scab,exfl)) {
- //partall
- .timerexfl 10 3 exfldo
- }
- }
- }
- alias -l exfldo {
- if ($version >= 6.17) { hinc -u10 scab count }
- if ($version <= 6.16) {
- if ($hget(scab,count)) { //hadd -u10 scab count $calc( $hget(scab,count) + 1 ) }
- if (!$hget(scab,count)) { //hadd -u10 scab count 1 }
- }
- if ($hget(scab,count) <= $gettok($hget(scab,chans),0,32)) { //join $gettok($hget(scab,chans),$hget(scab,count), 32) }
- }
- ON *:ERROR:*:{
- if (excess flood isin $1-) {
- //hadd -u15 scab exfl active
- if ($version >= 6.17) { hinc -u10 scab lcount }
- if ($version <= 6.16) { if (!$hget(scab,lcount)) { //hadd -u10 scab lcount 1 } }
- while ($hget(scab,lcount) <= $chan(0)) {
- //hadd -u60 scab chans $hget(scab,chans) $chan($hget(scab,lcount))
- if ($version >= 6.17) { hinc -u10 scab lcount }
- if ($version <= 6.16) { //hadd -u10 scab lcount $calc( $hget(scab,lcount) + 1 ) }
- if ($hget(scab,lcount) > $chan(0)) { //partall | break | halt }
- }
- }
- }
Add Comment
Please, Sign In to add comment