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

	<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>2024-12-18T05:56:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-18T05:56:44-04:00</updated>

		<published>2024-12-18T05:56:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113219#p113219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113219#p113219"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113219#p113219"><![CDATA[
thank you Crazycat, now it is not ignoring..<br><br>the list it is only showing from dcc.. anyway for now this is ok.. i'll try to search maybe, and maybe i can find something..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Wed Dec 18, 2024 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-12-18T03:18:52-04:00</updated>

		<published>2024-12-18T03:18:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113218#p113218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113218#p113218"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113218#p113218"><![CDATA[
The placement in ignore is due to your eggdrop.<br>I recommand to add the network's services in your user list, with the different official hosts they have and +fo flags:<div class="codebox"><p>Code: </p><pre><code>.+user services *!*@@services.dal.net.+host services *!*@dal.net.chattr services +fo</code></pre></div>Concerning your initial request, you'll have to bind the notice from chanserv giving you the access list, which is quite hard as there is no special keyword indicating that it's the access list for a particular channel or another notice from chanserv.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Dec 18, 2024 3:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-17T07:38:29-04:00</updated>

		<published>2024-12-17T07:38:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113217#p113217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113217#p113217"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113217#p113217"><![CDATA[
in connection with the script above, i've found another feature to add. If you have another way on how the script works<br>is much appreciated.<br><br>here is a sample code;<br><div class="codebox"><p>Code: </p><pre><code>set channel "#aslpls"set chanserv "ChanServ@services.dal.net"proc is_valid_channel {channel} {    return [string match "#*" $channel]}proc show_aop_list {channel} {    global chanserv    if {![is_valid_channel $channel]} {        putserv "PRIVMSG $channel :Error: Channel name must start with #."        return    }    putserv "PRIVMSG $chanserv :AOP $channel LIST"}bind pub - "!aoplist" show_aoplistproc show_aoplist {nick host hand channel text} {    set target_channel [lindex [split $text] 1]    if {$target_channel eq ""} {        set target_channel $channel    }    show_aop_list $target_channel}</code></pre></div>this is working, but the bot got ignored by <div class="codebox"><p>Code: </p><pre><code>[14:18:21] Flood from @dal.net!  Placing on ignore![14:18:21] Flood from @dal.net!  Placing on ignore!</code></pre></div>I need this aop list to show in the channel when you type !aoplist<br><div class="codebox"><p>Code: </p><pre><code>user: !aoplist #aslplsbot: #aslpls aop list: 1. nick1 2. nick2 3. nick3 4. nick4 5. nick5 and so on</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Tue Dec 17, 2024 7:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-12-09T18:51:58-04:00</updated>

		<published>2024-12-09T18:51:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113207#p113207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113207#p113207"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113207#p113207"><![CDATA[
<blockquote class="uncited"><div>The OP said he wants to use this for dalnet and dalnet doesnt use privmsg chanserv they use privmsg  <a href="mailto:ChanServ@services.dal.net">ChanServ@services.dal.net</a> and aliases, most other networks use aliases as well btw as privmsg chanserv is not always safe.</div></blockquote>So use:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">putserv "PRIVMSG chanserv@services.dal.net :AOP $chan ADD|DEL $targetnick</code></pre></div> <strong>script</strong> And better: use a variable to set chanserv nick by network.<br><br>But if you want to do a reusable script, don't use alias nor shortcut.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Dec 09, 2024 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-12-09T14:12:33-04:00</updated>

		<published>2024-12-09T14:12:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113206#p113206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113206#p113206"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113206#p113206"><![CDATA[
ive tested it on dalnet and it works fine as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 09, 2024 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-09T13:13:05-04:00</updated>

		<published>2024-12-09T13:13:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113205#p113205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113205#p113205"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113205#p113205"><![CDATA[
by the way I've tried it in another network with unrealircd.. it is working.. <br><br>thanks to all of you for contributing some ideas.. maybe it is in different ways as he explained.<br><br>anyway, i got it now.. even if the script is not perfect and needs improvement.. but it works as i need it.. cheers to all coders and regular people who helped out.<br><br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Mon Dec 09, 2024 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-12-09T12:16:14-04:00</updated>

		<published>2024-12-09T12:16:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113204#p113204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113204#p113204"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113204#p113204"><![CDATA[
<blockquote class="uncited"><div>simo, read the thread before posting erroreous code !<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>        putserv "ChanServ :aop $chan ADD $targetnick"        putserv "ChanServ :aop $chan DEL $targetnick"</code></pre></div></div></blockquote>These 2 lines can work <strong class="text-strong">only</strong> if the ircd is configured to have an alias of "chanserv".<br><br>The proper lines are:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">putserv "PRIVMSG ChanServ :AOP $chan ADD $targetnick"putserv "PRIVMSG ChanServ :AOP $chan DEL $targetnick"</code></pre></div> <strong>script</strong> When you do some code, use the real commands, never any alias or shortcut.</div></blockquote><br>The OP said he wants to use this for dalnet and dalnet doesnt use privmsg chanserv they use privmsg  <a href="mailto:ChanServ@services.dal.net">ChanServ@services.dal.net</a> and aliases, most other networks use aliases as well btw as privmsg chanserv is not always safe.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 09, 2024 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-12-09T11:45:03-04:00</updated>

		<published>2024-12-09T11:45:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113202#p113202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113202#p113202"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113202#p113202"><![CDATA[
simo, read the thread before posting erroreous code !<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>        putserv "ChanServ :aop $chan ADD $targetnick"        putserv "ChanServ :aop $chan DEL $targetnick"</code></pre></div></div></blockquote>These 2 lines can work <strong class="text-strong">only</strong> if the ircd is configured to have an alias of "chanserv".<br><br>The proper lines are:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">putserv "PRIVMSG ChanServ :AOP $chan ADD $targetnick"putserv "PRIVMSG ChanServ :AOP $chan DEL $targetnick"</code></pre></div> <strong>script</strong> When you do some code, use the real commands, never any alias or shortcut.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Dec 09, 2024 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2024-12-09T10:49:40-04:00</updated>

		<published>2024-12-09T10:49:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113201#p113201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113201#p113201"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113201#p113201"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind PUB n !aop ChanServ:Add-DEL:OP proc ChanServ:Add-DEL:OP {nick uhost hand chan arg} {   set arg [string map [list \017 ""] [stripcodes abcgru $arg]]   set items [split $arg]   if {[llength $items] &lt; 2 || [llength $items] &gt; 2} {  putnow "NOTICE $nick :!aop add/del nick" ; return }  set targetnick "[lindex [split $arg] 1]"  if {![onchan $targetnick $chan]} {  putserv "NOTICE $nick :$targetnick is not on channel $chan" ; return }  switch -nocase -- [lindex [split $arg] 0] {    add {        putserv "ChanServ :aop $chan ADD $targetnick" ; putserv "mode $chan +o $targetnick"        putserv "NOTICE $nick :$targetnick has been added on the AOP List of channel\: $chan."}    del {        putserv "ChanServ :aop $chan DEL $targetnick" ; putserv "mode $chan -o $targetnick"        putserv "NOTICE $nick :$targetnick has been removed from the AOP list of channel\: $chan."    }      }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 09, 2024 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-09T09:40:12-04:00</updated>

		<published>2024-12-09T09:40:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113200#p113200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113200#p113200"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113200#p113200"><![CDATA[
no error after installing this<br><div class="codebox"><p>Code: </p><pre><code>apt install tcllib-critcl</code></pre></div>and then restart your bot..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Mon Dec 09, 2024 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2024-12-09T09:17:16-04:00</updated>

		<published>2024-12-09T09:17:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113199#p113199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113199#p113199"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113199#p113199"><![CDATA[
<blockquote class="uncited"><div>I've tried the script but this required: <br><div class="codebox"><p>Code: </p><pre><code>aslpls&gt; .errorinfo&lt;Bot&gt; [16:09:47] ----------------&lt;Bot&gt; [16:09:47] can't find package tcllibc&lt;Bot&gt;     while executing&lt;Bot&gt; "package require tcllibc"&lt;Bot&gt; [16:09:47] errorCode : TCL PACKAGE UNFOUND&lt;Bot&gt; [16:09:47] ----------------</code></pre></div>do you know how to install "package require tcllibc" ?<br></div></blockquote>Do you still have this error ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Mon Dec 09, 2024 9:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-09T04:38:36-04:00</updated>

		<published>2024-12-09T04:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113198#p113198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113198#p113198"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113198#p113198"><![CDATA[
based on my first post and the script the simo posted..<br>and as per on my search online, this is what i found and come up with the code..<br><br>simple but it is working 100% on the network that have <strong class="text-strong">Chanserv</strong><br><div class="codebox"><p>Code: </p><pre><code>set channel "#aslpls"set chanserv "ChanServ@services.dal.net"bind pub - "!addaop" add_aopbind pub - "!delaop" del_aopproc add_aop {nick uhost hand chan text} {    global channel chanserv    if {$chan != $channel} {        return    }    set params [split $text]    if {[llength $params] &lt; 1} {        putserv "PRIVMSG $chan :Usage: !addaop &lt;nickname&gt;"        return    }    set user [lindex $params 0]    putserv "PRIVMSG $chanserv :AOP $channel ADD $user"    putserv "PRIVMSG $chan :Added $user to the AutoOp (AOP) list."}proc del_aop {nick uhost hand chan text} {    global channel chanserv    if {$chan != $channel} {        return    }    set params [split $text]    if {[llength $params] &lt; 1} {        putserv "PRIVMSG $chan :Usage: !delaop &lt;nickname&gt;"        return    }    set user [lindex $params 0]    putserv "PRIVMSG $chanserv :AOP $channel DEL $user"    putserv "PRIVMSG $chan :Removed $user from the AutoOp (AOP) list."}</code></pre></div>if you have a network with chanserv just change this "set chanserv"<br><div class="codebox"><p>Code: </p><pre><code>set channel "#aslpls"[color=#FF0000]set chanserv "ChanServ@services.[b]yournetwork.net[/b]"[/color]</code></pre></div><br>please share your thoughts if you have other ways..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Mon Dec 09, 2024 4:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-12-09T02:24:05-04:00</updated>

		<published>2024-12-09T02:24:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113197#p113197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113197#p113197"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113197#p113197"><![CDATA[
i have added the suggestion of Crazycat and Carlino but it seems still not working..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Mon Dec 09, 2024 2:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-12-08T18:31:00-04:00</updated>

		<published>2024-12-08T18:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113196#p113196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113196#p113196"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113196#p113196"><![CDATA[
<blockquote class="uncited"><div>I've tried the script but this required: <br><br>it shows like this..<div class="codebox"><p>Code: </p><pre><code>&lt;@aslpls&gt; !aop-Bot- !aop add/del nick&lt;@aslpls&gt; !aop add janice-Bot- !aop add/del nick&lt;@aslpls&gt; !aop add-Bot-  has been added on the AOP List of channel: #aslpls.</code></pre></div>from DCC it shows<br><div class="codebox"><p>Code: </p><pre><code>&lt;Bot&gt; [16:02:18] -ChanServ (service@dal.net)- Usage: AOP &lt;#channel&gt; &lt;ADD|DEL|LIST|WIPE&gt; [&lt;nick/mask&gt;]&lt;Bot&gt; [16:02:18] -ChanServ (service@dal.net)- For help, /msg ChanServ@services.dal.net HELP AOP</code></pre></div></div></blockquote>Replace the following lines in the script from simo:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">putserv "ChanServ aop $chan :ADD $targetnick "...putserv "ChanServ aop $chan :DEL $targetnick "</code></pre></div> <strong>script</strong> with the good syntax:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">putserv "PRIVMSG ChanServ :AOP $chan ADD $targetnick"...putserv "PRIVMSG ChanServ :AOP $chan DEL $targetnick"</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Dec 08, 2024 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2024-12-08T18:14:27-04:00</updated>

		<published>2024-12-08T18:14:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113195#p113195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113195#p113195"/>
		<title type="html"><![CDATA[Re: chanserv.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113195#p113195"><![CDATA[
try<div class="codebox"><p>Code: </p><pre><code>apt install tcllib-critcl</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Sun Dec 08, 2024 6:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
