<?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/4900" />

	<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>2003-09-08T11:06:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-08T11:06:08-04:00</updated>

		<published>2003-09-08T11:06:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26745#p26745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26745#p26745"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26745#p26745"><![CDATA[
It's impossible to send more than <strong class="text-strong">1</strong> msg to a single "user" on a line. With channel or user modes is something else.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Sep 08, 2003 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laynuks]]></name></author>
		<updated>2003-09-08T01:07:39-04:00</updated>

		<published>2003-09-08T01:07:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26720#p26720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26720#p26720"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26720#p26720"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set thechannel "#channel"bind kick - * kick:remove proc kick:remove { nick uhost hand chan targ rsn } { if {$targ == $::botnick &amp;&amp; [string tolower $chan] == [string tolower $::thechannel]} { putserv "PRIVMSG X :verify $nick"  } } bind notc - "* logged in as *" check_verify proc check_verify {nick host hand arg dest} { if {[string equal $dest $::botnick]} { putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]"  } }</code></pre></div>this should do fine.</div></blockquote> Hi Sir_Fz Thank You it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>last question how can I put multiple x commands in this script <br>PRIVMSG X :verify $nick &lt;-- I wanna add 2 more  x command like<br>"PRIVMSG X :ban $channel $nick" and <br>"PRIVMSG X :unban $channel $botname"<br><br>my point here is that after I verify the username then remove the access, at the same time I can ban the op that kick/ban the my bot using "PRIVMSG X :ban $channel $nick"<br>and unban the bot if it is banned from the channel using "PRIVMSG X :unban $channel $botname".  <br><br>Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3126">laynuks</a> — Mon Sep 08, 2003 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-09-06T06:03:46-04:00</updated>

		<published>2003-09-06T06:03:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26612#p26612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26612#p26612"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26612#p26612"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set thechannel "#channel"bind kick - * kick:remove proc kick:remove { nick uhost hand chan targ rsn } { if {$targ == $::botnick &amp;&amp; [string tolower $chan] == [string tolower $::thechannel]} { putserv "PRIVMSG X :verify $nick"  } } bind notc - "* logged in as *" check_verify proc check_verify {nick host hand arg dest} { if {[string equal $dest $::botnick]} { putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]"  } }</code></pre></div>this should do fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Sep 06, 2003 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laynuks]]></name></author>
		<updated>2003-09-06T03:42:50-04:00</updated>

		<published>2003-09-06T03:42:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26605#p26605</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26605#p26605"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26605#p26605"><![CDATA[
<blockquote class="uncited"><div>also, you do a /msg X :verify nick or whatever to check what X replies to you (notice) so we can create a notice bind based on that reply.</div></blockquote> &lt;-- hello here it is<br><br>notice reply in Mirc<br>/msg x verify Johnny<br>[00:49] -X- Johhny!<a href="mailto:who@aol.com">who@aol.com</a> is logged in as secret89<br><br><br>notice reply in eggdrop via telnet<br>.msg x verify Johhny<br>Msg to x: verify Johhny<br>[00:49] -X (<a href="mailto:cservice@undernet.org">cservice@undernet.org</a>)- Johhny!<a href="mailto:who@aol.com">who@aol.com</a>  is logged in as secret89<br><br><br>/whois johhny<br>Johnny is <a href="mailto:who@aol.com">who@aol.com</a><br>Johnny on #love<br><br><br>"the 2nd line is the reply from x when i do the /msg s verify nick" <br>So we need a notice bind for the 2nd stage of the scriptto work i guess<br><br>Thank You<br><br>==============================================<br><br><br>#first stage<br>bind kick - * kick:remove <br><br>proc kick:remove { nick uhost hand chan targ rsn } { <br>if {$targ == $::botnick} { <br>putserv "PRIVMSG X :verify $nick" <br>   } <br>} <br><br><br>#2nd stage<br>bind notc - "* logged in as *" check_verify <br><br>proc check_verify {nick host hand arg dest} { <br>if {[string equal $dest $::botnick]} { <br>putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]" <br>   } <br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3126">laynuks</a> — Sat Sep 06, 2003 3:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laynuks]]></name></author>
		<updated>2003-09-06T03:32:21-04:00</updated>

		<published>2003-09-06T03:32:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26603#p26603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26603#p26603"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26603#p26603"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>bot script will execute the line putserv "PRIVMSG X :kick $nick" and kick the op right?</div></blockquote>X will do the kicking, not the bot (:P), and it needs to know what channel you want to kick the person from (/msg X KICK &lt;#channel&gt; &lt;nick&gt; &lt;reason&gt;)</div></blockquote> &lt;-- i tested this nd put a #channel and it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3126">laynuks</a> — Sat Sep 06, 2003 3:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-29T07:52:45-04:00</updated>

		<published>2003-08-29T07:52:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25906#p25906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25906#p25906"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25906#p25906"><![CDATA[
also, you do a /msg X :verify nick or whatever to check what X replies to you (notice) so we can create a notice bind based on that reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Aug 29, 2003 7:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-29T02:47:00-04:00</updated>

		<published>2003-08-29T02:47:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25891#p25891</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25891#p25891"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25891#p25891"><![CDATA[
<blockquote class="uncited"><div>bot script will execute the line putserv "PRIVMSG X :kick $nick" and kick the op right?</div></blockquote>X will do the kicking, not the bot (:P), and it needs to know what channel you want to kick the person from (/msg X KICK &lt;#channel&gt; &lt;nick&gt; &lt;reason&gt;)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Aug 29, 2003 2:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laynuks]]></name></author>
		<updated>2003-08-29T02:38:05-04:00</updated>

		<published>2003-08-29T02:38:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25890#p25890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25890#p25890"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25890#p25890"><![CDATA[
bind kick - * kick:remove <br>proc kick:remove { nick uhost hand chan targ rsn } { <br>if {$targ == $::botnick} { <br>putserv "PRIVMSG X :kick $nick" <br>} <br>} <br><br><br>Hello Sir_Fz, i thought this script once loaded to my bot, and if any channel op kicks the bot using  /kick #channel BotName then the bot script will execute the line putserv "PRIVMSG X :kick $nick" and kick the op right? sorry for the confusion<br><br><br>"when you test use putlog "Script is working" for example (so it shows this message in partyline if you kicked the bot" would you paste the notice from X when you msg it verify $nick ? &lt;--hmmm I used telnet to connect to the eggdrop and i dont see any message from X, i guess i am missing some options or switch so I will be able to see message from X to the bot.<br><br>Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3126">laynuks</a> — Fri Aug 29, 2003 2:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-25T05:44:39-04:00</updated>

		<published>2003-08-25T05:44:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25622#p25622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25622#p25622"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25622#p25622"><![CDATA[
how do you expect it to kick you if you already kicked the bot out of the channel ?<br><br>when you test use <strong class="text-strong">putlog "Script is working"</strong> for example (so it shows this message in partyline if you kicked the bot"<br><br>would you paste the notice from X when you msg it verify $nick ?<br><br>P.S.: my nick is pronounced "Sir - aF Zee" Sir-Fz <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=3085">Sir_Fz</a> — Mon Aug 25, 2003 5:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laynuks]]></name></author>
		<updated>2003-08-25T05:00:51-04:00</updated>

		<published>2003-08-25T05:00:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25621#p25621</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25621#p25621"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25621#p25621"><![CDATA[
<blockquote class="uncited"><div>man, u said u want it to work when someone does /mode #channel kick botname.<br>anyway add this code to make the bot work on /kick #channel botname.<div class="codebox"><p>Code: </p><pre><code>bind kick - * kick:removeproc kick:remove { nick uhost hand chan targ rsn } {  if {$targ == $::botnick} {   putserv "PRIVMSG X :verify $nick"   }}</code></pre></div>note:do not remove Papillon's code, leave it and add this one into it.</div></blockquote><br>Hi again Sir Finz<br><br>this script<br>......<br><br>bind kick - * kick:remove <br><br>proc kick:remove { nick uhost hand chan targ rsn } { <br>  if {$targ == $::botnick} { <br>   putserv "PRIVMSG X :verify $nick" <br>   } <br>}<br><br><br><br>bind notc - "* logged in as *" check_verify <br><br>proc check_verify {nick host hand arg dest} { <br>  if {[string equal $dest $::botnick]} { <br>    putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]" <br>  } <br>}<br>.......<br>I tried the script but for some reason it did not work still....<br>so when i did /kick #channel BotName it did not do anything<br>.....<br><br><br><br>I tried the first block of the script to test if it works like<br>note: to test the script I changed verify to kick<br><br>bind kick - * kick:remove <br>proc kick:remove { nick uhost hand chan targ rsn } { <br>  if {$targ == $::botnick} { <br>   putserv "PRIVMSG X :kick $nick" <br>   } <br>}<br><br><br>I loaded this script but it did not kick me then I did <br>/kick #channel BotName <br><br>Maybe the reason the whole script did not work because the first block  dont work to feed to the 2nd block of the script.<br><br>Thank You<br><br>Laynuks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3126">laynuks</a> — Mon Aug 25, 2003 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-18T06:30:27-04:00</updated>

		<published>2003-08-18T06:30:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25199#p25199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25199#p25199"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25199#p25199"><![CDATA[
well done <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I didn't realize that the AOp was not being stripped off control characters. nice notice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Aug 18, 2003 6:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2003-08-17T23:08:28-04:00</updated>

		<published>2003-08-17T23:08:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25189#p25189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25189#p25189"/>
		<title type="html"><![CDATA[I got it working.. finally!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25189#p25189"><![CDATA[
Hi,<br><br>A bit more patience, a bit more reading, a little re-working and I have what I wanted still working after 4 days.....<br><br>bind notc - "*Identification to the nickname *" check:verify<br><br>proc check:verify {nick host hand arg {dest ""}} {<br>  set msg [ctrl:filter $arg]<br>  if {[string equal $dest $::botnick]} {<br>#   Parse ChanServ's message.<br>    set offender [lindex [split $msg] 0] <br>    set aop [string tolower [lindex [split $msg] 2]]<br>    set chan [string trim [lindex [split $msg] 5] .] <br>    set opnick [string trim [lindex [split $msg] end] .]<br>#   Only an AOp can be punished.<br>    if {![string match $aop "aop"]} {return}<br>#   Delete access, remove op &amp; kick with appropriate message.<br>    putquick "PRIVMSG $::chanserv :aop $chan del $opnick" <br>    putquick "MODE $chan -o $offender"<br>    puthelp "notice $offender :You tit head, you just lost access!"<br><br>#   Check and see if the offender is in the bots' user list<br>#   If so, delete them!<br>    set thehand [findhand $offender [getchanhost $offender]]<br><br>    if {$offender != "" &amp;&amp; $thehand != "*"} {<br>        deluser $thehand<br>putcmdlog "Deleted !$offender! from the user database."<br>save<br>    }<br>  } <br>}<br><br>The bind is the major difference.  It's not looking for any formatted text.  The "AOp" part of the bind is returned in bold and caused the bot to totally ignore it in previous efforts.  I also reverted back to Ppslim's proc for removing formatting and added a conditional statement to determine that the offender is indeed an aop and not a sop.  Founder's are ignored as the why command returns a different message.  Except for the above, the script is as it was and works perfectly.<br><br>Many thanks for all the help, very much appreciated <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Aug 17, 2003 11:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2003-08-14T14:18:27-04:00</updated>

		<published>2003-08-14T14:18:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24935#p24935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24935#p24935"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24935#p24935"><![CDATA[
Thank you very much again Sir_Fz, and thanks to caesar also, I will try it again and see if it I get more than 24hrs use out of it (now that's the confusing bit).  Someone suggested I e-mail DALnet and ask that they remove their stupid formatting but, as they never respond to e-mails I'd be wastng my time. LOL<br><br>My frustration has been somewhat enhanced by an inability to concentrate fully due to virul bronchitis but, as someone once said, "S..t happens!" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>PS: I'm well overdue for new reading glasses too.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Aug 14, 2003 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-14T05:25:18-04:00</updated>

		<published>2003-08-14T05:25:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24893#p24893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24893#p24893"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24893#p24893"><![CDATA[
this should make it work:<div class="codebox"><p>Code: </p><pre><code># Full name of channel services set chanserv "chanserv@Services.dal.net" # Channel *not* to function in set nogo "#channelname" bind kick - * kick:remove bind notc - "* has AOp access to *" check:verify proc kick:remove {nick uhost hand chan targ rsn} { if {$targ == $::botnick} { if {![string match $chan $::nogo]} { putserv "PRIVMSG $::chanserv :why $chan $nick" } } } proc check:verify {nick host hand arg {dest ""}} { regexp -all {\002} $argif {[string equal $dest $::botnick]} { set offender [lindex [split $arg] 0] set chan [string trim [lindex [split $arg] 5] .] set opnick [string trim [lindex [split $arg] end] .] set thehand [findhand $offender [getchanhost $offender]] if {$offender != "" &amp;&amp; $thehand != "*"} { deluser $thehand } putquick "PRIVMSG $::chanserv :aop $chan del $opnick" putquick "MODE $chan -o $offender" putkick $chan $offender "You tit head, you just lost access!" } } # findhand - tries to find a handle proc findhand {nick host} { if {[validuser $nick]} { return $nick } else { set thehand [nick2hand $nick] if {[validuser $thehand]} { return $thehand } set thehand [finduser $host] return $thehand } } ### End ### putlog "TCL \002loaded\002: Kick Remove."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Aug 14, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-14T00:44:56-04:00</updated>

		<published>2003-08-14T00:44:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24881#p24881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24881#p24881"/>
		<title type="html"><![CDATA[hello I need a script that will remove access when]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24881#p24881"><![CDATA[
You should see <a href="http://forum.egghelp.org/viewtopic.php?t=5253" class="postlink">this</a> topic.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 14, 2003 12:44 am</p><hr />
]]></content>
	</entry>
	</feed>
