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

	<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>2021-07-19T11:58:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DasBrain]]></name></author>
		<updated>2021-07-19T11:58:46-04:00</updated>

		<published>2021-07-19T11:58:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110126#p110126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110126#p110126"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110126#p110126"><![CDATA[
Sure, add those 3 lines at the end of the script:<div class="codebox"><p>Code: </p><pre><code>proc logargs args {putlog $args}trace add execution ::dasbrain::cswhy::onmode {enter enterstep leave leavestep} logargstrace add execution ::dasbrain::cswhy::onnotice {enter enterstep leave leavestep} logargs</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12909">DasBrain</a> — Mon Jul 19, 2021 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-07-19T03:00:12-04:00</updated>

		<published>2021-07-19T03:00:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110123#p110123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110123#p110123"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110123#p110123"><![CDATA[
Adding putlog in different places may help to find which trouble occures, if bind is activated or not, which string is received, if the regexp matches...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 19, 2021 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DasBrain]]></name></author>
		<updated>2021-07-19T01:32:40-04:00</updated>

		<published>2021-07-19T01:32:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110121#p110121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110121#p110121"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110121#p110121"><![CDATA[
My script has been written for Atheme, and works fine on libera.chat.<br><br>I suspect that DALnet uses a different response to the WHY command - so my script doesn't work.<br><br>As I don't use DALnet, I have no idea how their response looks like.<br>If you do, you just have to change the regexp to match their message.<br><br>And if DALnet doesn't support the CS command, then change it to CHANSERV, which is AFAIK supported.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12909">DasBrain</a> — Mon Jul 19, 2021 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-07-19T01:10:35-04:00</updated>

		<published>2021-07-19T01:10:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110120#p110120</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110120#p110120"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110120#p110120"><![CDATA[
Oh yes, I didn't read your initial post and I'm not used to use alltools features <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>@firebugs: how did you set the +S to your services ? can you show us the user record for them ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Jul 19, 2021 1:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DasBrain]]></name></author>
		<updated>2021-07-18T18:32:11-04:00</updated>

		<published>2021-07-18T18:32:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110119#p110119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110119#p110119"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110119#p110119"><![CDATA[
<blockquote class="uncited"><div>I'm skeptical about the <strong class="text-strong">bind mode S</strong> as the "S" is not a known flag, I don't know how it could work. Same for the <strong class="text-strong">bind notc</strong>.</div></blockquote><blockquote class="uncited"><div>Services need the <strong class="text-strong">S</strong> flag.</div></blockquote>Uppercase flags can be freely used by scripts.<br><blockquote class="uncited"><div>What is <strong class="text-strong">putnotc</strong> ? A private proc not included in the script ?</div></blockquote>alltools.tcl - comes with eggdrop.<br><blockquote class="uncited"><div>And I think the PRIVMSG lacks ":"</div></blockquote>Yeah, somebody changed my code without understanding it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12909">DasBrain</a> — Sun Jul 18, 2021 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-07-18T10:49:40-04:00</updated>

		<published>2021-07-18T10:49:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110117#p110117</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110117#p110117"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110117#p110117"><![CDATA[
First, use <strong class="text-strong">code</strong> tags when putting script here, it's better for reading.<br><br>I'm skeptical about the <strong class="text-strong">bind mode S</strong> as the "S" is not a known flag, I don't know how it could work. Same for the <strong class="text-strong">bind notc</strong>.<br><br>What is <strong class="text-strong">putnotc</strong> ? A private proc not included in the script ?<br><br>And I think the PRIVMSG lacks ":":<div class="codebox"><p>Code: </p><pre><code># Brain-Tools# Copyrigt DasBrain @ #John @ irc.quakenet.org# File: cswhy-1.0.tm# Asks chanserv what access someone has when they get ops from ChanServ.# Designed for use with Atheme.# Configs:package require eggdrop 1.6package require Tcl 8.5package provide dasbrain::cswhy 1.0namespace eval ::dasbrain::cswhy {}setudef flag cswhybind mode - "% +o" ::dasbrain::cswhy::onmodebind notc - * ::dasbrain::cswhy::onnoticeproc ::dasbrain::cswhy::onmode {nick uhost hand chan mc target} {if {[channel get $chan cswhy]} {puthelp "PRIVMSG ChanServ :WHY $chan $target"}}proc ::dasbrain::cswhy::onnotice {nick uhost handle msg target} {if {[regexp {has flags \002[^\002]+\002 in \002([^\002]+)\002 } $msg - chan]|| [regexp {has no special access to \002([^\002]+)\002} $msg - chan]} {if {[channel get $chan cswhy]} {putserv "NOTICE $chan :$msg"}}} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Jul 18, 2021 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[firebugs]]></name></author>
		<updated>2021-07-18T09:59:18-04:00</updated>

		<published>2021-07-18T09:59:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110114#p110114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110114#p110114"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110114#p110114"><![CDATA[
Below is the script, looks like it's not working, as I try to change it to puthelp "PRIVMSG ChanServ WHY $chan $target"<div class="codebox"><p>Code: </p><pre><code># Brain-Tools# Copyrigt DasBrain @ #John @ irc.quakenet.org# File: cswhy-1.0.tm# Asks chanserv what access someone has when they get ops from ChanServ.# Designed for use with Atheme.# Configs:package require eggdrop 1.6package require Tcl 8.5package provide dasbrain::cswhy 1.0namespace eval ::dasbrain::cswhy {}setudef flag cswhybind mode S "% +o" ::dasbrain::cswhy::onmodebind notc S * ::dasbrain::cswhy::onnoticeproc ::dasbrain::cswhy::onmode {nick uhost hand chan mc target} {if {[channel get $chan cswhy]} {puthelp "PRIVMSG ChanServ WHY $chan $target"}}proc ::dasbrain::cswhy::onnotice {nick uhost handle msg target} {if {[regexp {has flags \002[^\002]+\002 in \002([^\002]+)\002 } $msg - chan]|| [regexp {has no special access to \002([^\002]+)\002} $msg - chan]} {if {[channel get $chan cswhy]} {putnotc @$chan $msg}}}</code></pre></div><blockquote class="uncited"><div>My bad for not mentioning the network I'm on, I'm on dalnet but will give below script a try. <br>Thanks for your time and I do appreciate it!</div></blockquote><blockquote class="uncited"><div>I wrote this script for you: <a href="https://github.com/DasBrain/brain-tools/blob/master/dasbrain/cswhy-1.0.tm" class="postlink">https://github.com/DasBrain/brain-tools ... why-1.0.tm</a></div></blockquote>Some notes:<ul><li>Services need the <strong class="text-strong">S</strong> flag.</li><li>The script is designed to work with the <strong class="text-strong">Atheme</strong> service package, in the English language.</li><li>To enable the script on a channel, use <strong class="text-strong">.chanset #channel +cswhy</strong> on the partyline.</li><li>The script is triggered when the services (someone with the +S flag) gives someone op.</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12925">firebugs</a> — Sun Jul 18, 2021 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[firebugs]]></name></author>
		<updated>2021-07-14T02:43:12-04:00</updated>

		<published>2021-07-14T02:43:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110102#p110102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110102#p110102"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110102#p110102"><![CDATA[
My bad for not mentioning the network I'm on, I'm on dalnet but will give below script a try. <br>Thanks for your time and I do appreciate it!<br><br><blockquote class="uncited"><div>I wrote this script for you: <a href="https://github.com/DasBrain/brain-tools/blob/master/dasbrain/cswhy-1.0.tm" class="postlink">https://github.com/DasBrain/brain-tools ... why-1.0.tm</a><br><br>Some notes:<ul><li>Services need the <strong class="text-strong">S</strong> flag.</li><li>The script is designed to work with the <strong class="text-strong">Atheme</strong> service package, in the English language.</li><li>To enable the script on a channel, use <strong class="text-strong">.chanset #channel +cswhy</strong> on the partyline.</li><li>The script is triggered when the services (someone with the +S flag) gives someone op.</li></ul></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12925">firebugs</a> — Wed Jul 14, 2021 2:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DasBrain]]></name></author>
		<updated>2021-07-12T08:21:01-04:00</updated>

		<published>2021-07-12T08:21:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110081#p110081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110081#p110081"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110081#p110081"><![CDATA[
I wrote this script for you: <a href="https://github.com/DasBrain/brain-tools/blob/master/dasbrain/cswhy-1.0.tm" class="postlink">https://github.com/DasBrain/brain-tools ... why-1.0.tm</a><br><br>Some notes:<ul><li>Services need the <strong class="text-strong">S</strong> flag.</li><li>The script is designed to work with the <strong class="text-strong">Atheme</strong> service package, in the English language.</li><li>To enable the script on a channel, use <strong class="text-strong">.chanset #channel +cswhy</strong> on the partyline.</li><li>The script is triggered when the services (someone with the +S flag) gives someone op.</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12909">DasBrain</a> — Mon Jul 12, 2021 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[firebugs]]></name></author>
		<updated>2021-07-11T23:15:50-04:00</updated>

		<published>2021-07-11T23:15:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110069#p110069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110069#p110069"/>
		<title type="html"><![CDATA[Check ops status on join a channel with Chanserv]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110069#p110069"><![CDATA[
I'm new and i'm glad to be here <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>I'm looking for a script that will perform a "/msg chanserv why #channel op nickname" upon an op joining the channel.<br>The why command output should be notice to the channel ops only.<br><br>Thanks in advance<br>Cheersssss!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12925">firebugs</a> — Sun Jul 11, 2021 11:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
