<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7730" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-06-19T10:49:14-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7730</id>

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-19T10:49:14-04:00</updated>

		<published>2004-06-19T10:49:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37596#p37596</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37596#p37596"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37596#p37596"><![CDATA[
autoop feature on chanserv maybe ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sat Jun 19, 2004 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-19T05:22:32-04:00</updated>

		<published>2004-06-19T05:22:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37582#p37582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37582#p37582"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37582#p37582"><![CDATA[
There's no problem with script, I'm thinking either other scripts are interacting, or there's a loop somewhere. I'm having same problem with my script, if i find the solution i'll check yours again. Sorry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sat Jun 19, 2004 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-06-19T04:47:42-04:00</updated>

		<published>2004-06-19T04:47:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37579#p37579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37579#p37579"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37579#p37579"><![CDATA[
Bah, use the CODE tags when posting code!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Sat Jun 19, 2004 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vixs]]></name></author>
		<updated>2004-06-19T04:45:37-04:00</updated>

		<published>2004-06-19T04:45:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37577#p37577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37577#p37577"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37577#p37577"><![CDATA[
Thanks DarkJFMan<br>here the script ....<br>since i dnt knw where this op thing u were askin for..i am sentin the whole script  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br>thanks<br><br><br><br># This Script will check to see if NickServ is online every 5 minutes and <br># if so, identify and get OPs. Additional Comands are:<br>#<br>#                      - Commands - <br>#  DCC - .ident (start ident procedure and get OPs)<br>#  MSG - .ident (start ident procedure and get OPs)<br>#<br>#  DCC and MSG commands are available to global o flaged Users.<br><br># It is good to add NickServ as a user to stop ignores.(The below ALSO adds Chanserv)<br># In DCC, TYPE:<br>#   .+user NickServ *!<a href="mailto:service@dal.net">service@dal.net</a><br>#   .chattr NickServ +f-p<br>#   .chpass NickServ VOID123<br><br># Edit this file completely<br># then place this script in the scripts directory. (eggdrop/scripts) <br># Then go into the eggdrop directory and edit your .conf file<br># (at the bottom) by adding this line: source scripts/ident09.tcl  <br># Then in dcc type: .rehash and .ident<br><br><br># This is NOT case sensitive. The Below works on Dalnet.<br># EXAMPLE: set iNickServ "NickServ"<br>set iNickServ "NickServ"<br><br><br># Set the bots nickname here.<br># EXAMPLE: set i_nick "BotName"<br>set i_nick "botname"<br><br><br># Set channels the bot has OPs on. (Use "" for all channels)<br>#                          WARNING<br># IF YOUR BOT IS NOT AN OP ON ONE OF YOUR CHANNELS, THEN DO NOT USE ""<br># IF YOU DO, YOUR BOT WILL KEEP ASKING CHANSERV FOR OP's EVERY 5 MINUTES<br># ON THAT CHANNEL THAT THE BOT DOES NOT HAVE OPs ON.<br># Multiple channels seperated by spaces.<br># set i_chans "#eggdropusers #eggdroplovers"<br>set i_chans "#channame #channame"<br><br><br># Set the bots ident password here.<br># EXAMPLE: set i_pass "Password123"<br>set i_pass "*****"<br><br><br>############ -o Procedure "i_regain_OPs" ############<br><br># If you want the bot to regain OPs if it loses OPs, set this to 1<br># set 1 to enable, 0 for off<br>set i_regain(OPs) 1<br><br><br>############ -o Procedure Override ############<br><br># Valid settings are ALL Global flags. n, m, o, f, etc<br># If set to o, and a global o user de-OPs the bot, the above "i_regain_OPs" procedure will halt<br># EXAMPLE: set i_regain(flag) o<br>set i_regain(flag) o<br><br><br>############ Memo Procedure ############<br><br># If enabled, the bot will read the first 5 memos<br># If i_delete_memos is also enabled, the bot will DELETE ALL Memos AFTER reading the first 5 memos<br># set 1 to enable, 0 for off<br>set i_read_memos 1<br><br># If enabled, the bot will DELETE ALL Memos<br># set 1 to enable, 0 for off<br>set i_delete_memos 1<br><br><br><br>############ Stop Editing Here ############<br><br><br>######################################################################<br>#                          Main Script                               #<br>######################################################################<br><br># init-server<br><br>bind evnt -|- init-server findN_Nserv<br><br>proc findN_Nserv {type} {<br>  global iNickServ <br>  putserv "ISON $iNickServ"<br>}<br><br>#             ############ raw Nickserv is on-line ############<br><br>bind raw -|- 303 Nserv:isonline<br><br>proc Nserv:isonline {from keyword text} {<br>  global botnick iNickServ i_nick i_pass i_gost_timer i_timer<br>  if {[string match -nocase "*$iNickServ*" "$text"]} {<br>    if {[isbotnick $i_nick]} {<br>      putserv "PRIVMSG <a href="mailto:NickServ@services.dal.net">NickServ@services.dal.net</a> :IDENTIFY $i_pass"<br>      return 0<br>    } else {<br>      putserv "PRIVMSG <a href="mailto:NickServ@services.dal.net">NickServ@services.dal.net</a> :GHOST $i_nick $i_pass"<br>      utimer $i_gost_timer [list putserv "NICK $i_nick"]<br>      return 0<br>    }<br>  } else {<br>    putlog "\[\002R\|Botics\002\] NickServ Identification Script\: NickServ is NOT online at the present time, I will check again in $i_timer minutes."<br>    timer $i_timer [list findN_Nserv $iNickServ]<br>  }<br>}<br><br>bind notc -|- "*owned by someone else*" identify:Nserv<br><br>proc identify:Nserv {nick uhost handle text dest} { <br>  global botnick iNickServ i_nick i_pass i_timer<br>  if {[string match -nocase "*$iNickServ*" "$nick"]} {<br>    if {[isbotnick $i_nick]} {<br>      putlog "Identifying Now." <br>      putserv "PRIVMSG <a href="mailto:NickServ@services.dal.net">NickServ@services.dal.net</a> :IDENTIFY $i_pass"<br>    }<br>    timer $i_timer Nserv_ckops<br>  }<br>}<br><br>proc Nserv_ckops {} {<br>  global botnick i_chans i_timer iNickServ<br>  if {$i_chans == ""} {<br>    set chans [channels]<br>  } else { <br>    set chans $i_chans<br>  }<br>  set ictr 0<br>  foreach chan $chans {<br>    if {[botonchan $chan]} {<br>      if {![botisop $chan]} {<br>        incr ictr 1<br>      }<br>    } else {<br>      incr ictr 1<br>    }<br>  }<br>  if {$ictr &gt;= "1"} {<br>    timer $i_timer [list findN_Nserv $iNickServ]<br>  }<br>}<br>#             ############ Successful Ident ############<br><br>bind notc -|- "*Password accepted*" identN:success<br><br>proc identN:success {nick uhost handle text dest} {<br>  global botnick iNickServ i_chans i_gost_timer<br>  if {[string match -nocase "*$iNickServ*" "$nick"]} {<br>    foreach t [timers] {<br>      if {[lindex $t 1] == "findN_Nserv"} {<br>        killtimer [lindex $t end]<br>      }<br>    }<br>    foreach t [utimers] {<br>      if {[lindex $t 1] == "findN_Nserv"} {<br>        killutimer [lindex $t end]<br>      }<br>    }<br>    if {$i_chans == ""} {<br>      set chans [channels]<br>    } else { <br>      set chans $i_chans<br>    }<br>    foreach chan $chans {<br>      if {[botonchan $chan]} {<br>        if {![botisop $chan]} {<br>          putserv "PRIVMSG <a href="mailto:CHANSERV@services.dal.net">CHANSERV@services.dal.net</a> :OP $chan $botnick"<br>        }<br>      }<br>    }<br>    utimer $i_gost_timer backupN_getops<br>  }<br>}<br><br>proc backupN_getops {} {<br>  global botnick i_chans i_timer<br>  putlog "Checking to see if I am an OP on all Channels"<br>  if {$i_chans == ""} {<br>    set chans [channels]<br>  } else { <br>    set chans $i_chans<br>  }<br>  set ictr 0<br>  foreach chan $chans {<br>    if {[botonchan $chan]} {<br>      if {![botisop $chan]} {<br>        putserv "PRIVMSG <a href="mailto:CHANSERV@services.dal.net">CHANSERV@services.dal.net</a> :OP $chan $botnick"<br>        incr ictr 1<br>      }<br>    } else {<br>      putserv "PRIVMSG <a href="mailto:ChanServ@services.dal.net">ChanServ@services.dal.net</a> :INVITE $chan"<br>      incr ictr 1<br>    }<br>  }<br>  if {$ictr &gt;= "1"} {<br>    timer $i_timer backupN_getops<br>  } else {<br>    foreach t [timers] {<br>      if {[lindex $t 1] == "backupN_getops"} {<br>        killtimer [lindex $t end]<br>      }<br>      if {[lindex $t 1] == "Nserv_ckops"} {<br>        killtimer [lindex $t end]<br>      }<br>    }<br>    foreach t [utimers] {<br>      if {[lindex $t 1] == "backupN_getops"} {<br>        killutimer [lindex $t end]<br>      }<br>    }<br>    putlog "Successful Ident and OP"<br>  }<br>}<br>#             ############ De-OP Protection ############<br><br>set i_regain(flood) 0<br>set i_regain(findN) 0<br><br>bind mode -|- "* -o" keepN:ops<br><br>proc keepN:ops {nick uhost handle channel mode victim} {<br>  global i_regain botnick i_chans iNickServ<br>  if {$i_regain(OPs) == "0"} {return 0}<br>  if {$victim != ""} {<br>    if {[string match -nocase "$victim" "$botnick"]} {<br>      if {$nick != ""} {<br>        if {[matchattr $handle $i_regain(flag)]} {return 0}<br>      }<br>      if {$i_regain(flood) == "1"} {<br>        return 0<br>      } else {<br>        set i_regain(flood) 1<br>        utimer 5 [list set i_regain(flood) 0]<br>      }<br>      if {$i_chans != ""} {<br>        set i_chan_search 1<br>        set chans $i_chans<br>        foreach chan $chans {<br>          if {[string match -nocase "$chan" "$channel"]} {<br>            set i_chan_search 0<br>            break<br>          }<br>        }<br>        if {$i_chan_search == "1"} {return 0}<br>      }<br>      putquick "PRIVMSG <a href="mailto:CHANSERV@services.dal.net">CHANSERV@services.dal.net</a> :OP $channel $botnick"<br>      # utimer 2 [putquick "PRIVMSG <a href="mailto:CHANSERV@services.dal.net">CHANSERV@services.dal.net</a> :OP $channel $botnick"]<br>      if {$i_regain(findN) == "1"} {<br>        return 0<br>      } else {<br>        set i_regain(findN) 1<br>        timer 2 [list set i_regain(findN) 0]<br>        utimer 2 [list findN_Nserv $iNickServ]<br>      }<br>    }<br>  }<br>}<br>#             ############ DCC Commands  Ident ############<br><br>bind dcc o ident dccN:ident<br><br>proc dccN:ident {handle idx text} {<br>  global botnick i_timer iNickServ<br>  putlog "Started Ident Procedure at the request of $handle"<br>  utimer $i_timer [list findN_Nserv $iNickServ]<br>}<br><br>#             ############ MSG Commands  Ident ############<br><br>bind msg o .ident msgN:ident<br>bind msg o !ident msgN:ident<br><br>proc msgN:ident {nick uhost handle text} {<br>  global botnick i_timer iNickServ<br>  putquick "PRIVMSG $nick :Starting Ident Procedure."<br>  putlog "Started Ident Procedure at the request of $handle"<br>  utimer $i_timer [list findN_Nserv $iNickServ]<br>}<br><br>#             ############ Memo Procedure ############<br><br>bind notc -|- "*new memo*" i<img alt=":memo:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4dd.svg">N<br><br>proc i<img alt=":memo:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f4dd.svg">N {nick uhost handle text dest} {<br>  global botnick i_nick i_read_memos i_delete_memos<br>  if {[string match -nocase "*MemoServ*" "$nick"]} {<br>    if {[isbotnick $i_nick]} {<br>      if {$i_read_memos == "1"} {putquick "PRIVMSG <a href="mailto:MEMOSERV@services.dal.net">MEMOSERV@services.dal.net</a> :READ 1,2,3,4,5"}<br>      if {$i_delete_memos == "1"} {utimer 12 [putquick "PRIVMSG <a href="mailto:MEMOSERV@services.dal.net">MEMOSERV@services.dal.net</a> :DEL ALL"]}<br>    }<br>  }<br>  return 0<br>}<br>############ Internal Vars ############ Do NOT Change ############<br># Set the amount of time in minutes to check if nickserv is online.<br>set i_timer 5<br><br># Set the amount of time in seconds before bot changes <br># to "i_nick" "after" the ghost command was used.<br>set i_gost_timer 60<br><br>if {$i_chans == ""} {<br>  putlog "Loaded \[\002R\|Botics\002\] Identification Scr v0.9 by Dedan (active on all channels)"<br> } else {<br>   set log_i_chans $i_chans<br>   set log_i_chans [join $log_i_chans ", "]<br>   set log_i_chans [linsert $log_i_chans end-1 and]<br>   putlog "Loaded \[\002R\|Botics\002\] NickServ Identification Script v0.9 by Dedan (active on: $log_i_chans)"<br>   unset log_i_chans<br>}<br>if {$i_nick == ""} {<br>  putlog "\[\002R\|Botics\002\] NickServ Identification Script \002\[ERROR\] YOU MUST ENTER A NICK\002"<br>  # die "\[\002R\|Botics\002\] NickServ Identification Script \002\[ERROR\] YOU MUST ENTER A NICK\002"<br>}<br>if {$i_pass == ""} {<br>  putlog "\[\002R\|Botics\002\] NickServ Identification Script \002\[ERROR\] YOU MUST ENTER A PASSWORD\002"<br>  # die "\[\002R\|Botics\002\] NickServ Identification Script \002\[ERROR\] YOU MUST ENTER A PASSWORD\002"<br>}<br>######################################################################<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4943">Vixs</a> — Sat Jun 19, 2004 4:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-19T04:17:02-04:00</updated>

		<published>2004-06-19T04:17:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37573#p37573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37573#p37573"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37573#p37573"><![CDATA[
You getting any errors?<br><br>and paste the Op part for that script so we can take a look<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Sat Jun 19, 2004 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Vixs]]></name></author>
		<updated>2004-06-19T03:09:25-04:00</updated>

		<published>2004-06-19T03:09:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37572#p37572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37572#p37572"/>
		<title type="html"><![CDATA[Oping Twice !]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37572#p37572"><![CDATA[
hey .. <br>I use WIndrop Latest version..1.6.16 <br>i have installed ident09.tcl script for NickServ Identi..<br>the problem is when my bot logs in to a channel ...<br>ChanServ sets mode: +o Botname<br>ChanServ sets mode: +o Botname<br><br>why does it Op twice?<br>any idea how to set back to normal ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4943">Vixs</a> — Sat Jun 19, 2004 3:09 am</p><hr />
]]></content>
	</entry>
	</feed>
