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

	<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-08-14T05:37:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-08-14T05:37:37-04:00</updated>

		<published>2021-08-14T05:37:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110179#p110179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110179#p110179"/>
		<title type="html"><![CDATA[gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110179#p110179"><![CDATA[
thank you CrazyCat that seems to work well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Aug 14, 2021 5:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-08-14T04:58:28-04:00</updated>

		<published>2021-08-14T04:58:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110178#p110178</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110178#p110178"/>
		<title type="html"><![CDATA[gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110178#p110178"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Peharps you miss the line:<br><strong class="text-strong">loadmodule gseen</strong><br>gseen is a module, the tcl file is just for some configuration.</div></blockquote>Thanks crazycat im aware it's a module and loaded fine i just wanted to have like chanops isop and users with flag o to have access to the public command and no one else if that's possible</div></blockquote>The only way you have, it's to modify binds to call your own procedure which will check user and then call the original procedure.<br>Example:<div class="codebox"><p>Code: </p><pre><code># bind pub - ${cmdchar}seen *pub:!seenbind pub - ${cmdchar}seen mypub:seenproc mypub:seen {nick uhost handle chan text} {   if {[isop $nick $chan] || [ishalfop $nick $chan]} {      *pub:!seen $nick $uhost $handle $chan $text   }}</code></pre></div>This is only an example, you can add any check you want in the mypub:seen proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Aug 14, 2021 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-08-14T00:13:19-04:00</updated>

		<published>2021-08-14T00:13:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110177#p110177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110177#p110177"/>
		<title type="html"><![CDATA[Re: gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110177#p110177"><![CDATA[
Thanks willyw i already experimented with that but needed to find s way to check for like isop and ishalfop as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Aug 14, 2021 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-08-14T00:10:54-04:00</updated>

		<published>2021-08-14T00:10:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110176#p110176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110176#p110176"/>
		<title type="html"><![CDATA[gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110176#p110176"><![CDATA[
<blockquote class="uncited"><div>Peharps you miss the line:<br><strong class="text-strong">loadmodule gseen</strong><br>gseen is a module, the tcl file is just for some configuration.</div></blockquote>Thanks crazycat im aware it's a module and loaded fine i just wanted to have like chanops isop and users with flag o to have access to the public command and no one else if that's possible<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Aug 14, 2021 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-08-13T23:17:25-04:00</updated>

		<published>2021-08-13T23:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110175#p110175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110175#p110175"/>
		<title type="html"><![CDATA[Re: gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110175#p110175"><![CDATA[
<blockquote class="uncited"><div>i was wondering how to edit gseen to give only certain users access to its commands like chanops and users with certain flags.<br><br><br>Should it be edited in the conf or elsewhere:<br><br>...<br><div class="codebox"><p>Code: </p><pre><code>bind pub - ${cmdchar}seen *pub:!seenbind pub - ${cmdchar}seennick *pub:!seennickbind pub - ${cmdchar}seenstats *pub:!seenstats...</code></pre></div>i see the pub bind for the commands but cant find the process for it</div></blockquote><br>I don't know what you mean by, "... the process for it" .<br>Please elaborate.<br><br>In the meantime :<br>Experiment with the bind lines that you found, and are quoted above.<br>If you are unfamiliar with the use of<br>bind pub<br>then visit:  <a href="https://docs.eggheads.org/mainDocs/tcl-commands.html" class="postlink">https://docs.eggheads.org/mainDocs/tcl-commands.html</a><br>and text search for:   bind pub<br>and read.<br><br>Also see:  <a href="http://suninet.the-demon.de/041.htm" class="postlink">http://suninet.the-demon.de/041.htm</a><br><br>And to get a list of flags,  in partyline do:      .help whois<br>or visit:   <a href="http://www.egghelp.org/commands/core.htm#whois" class="postlink">http://www.egghelp.org/commands/core.htm#whois</a><br><br>Remember! -  when editing bind lines, a simple .rehash is not good enough.<br>If you use .rehash to implement your edit, you might get unexpected (and confusing ) results.<br>The simple way to be sure, after editing a bind line,  is to use .restart .<br>(There are other ways,  but that is the simple way.  )<br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Aug 13, 2021 11:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-08-13T19:42:00-04:00</updated>

		<published>2021-08-13T19:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110174#p110174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110174#p110174"/>
		<title type="html"><![CDATA[gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110174#p110174"><![CDATA[
Peharps you miss the line:<br><strong class="text-strong">loadmodule gseen</strong><br>gseen is a module, the tcl file is just for some configuration.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Aug 13, 2021 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-08-13T16:16:23-04:00</updated>

		<published>2021-08-13T16:16:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110173#p110173</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110173#p110173"/>
		<title type="html"><![CDATA[gseen limited to chanops and users with certain flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110173#p110173"><![CDATA[
i was wondering how to edit gseen to give only certain users access to its commands like chanops and users with certain flags.<br><br><br>Should it be edited in the conf or elsewhere:<br><br><br><br>Code:<br><br><div class="codebox"><p>Code: </p><pre><code>##############   General Settings############ the file where the seen data will be backuped.# WARNING: set this _before_ the module is loaded.set gseenfile "gseen.dat"# now load the moduleloadmodule gseen# load the English language fileloadseenslang "en" "English" language/gseen.en.lang# load the German language fileloadseenslang "de" "Deutsch" language/gseen.de.lang# set the default language to english...set default-slang "en"# ... but let #xwp use the german langfilesetchanseenlang #xwp "de"# the char that marks public commands (!seen, etc...)# "" is a valid optionset cmdchar "!"# delete data sets that are older than x daysset expire-seens 60# only answer x seen requests in y seconds to prevent floodingset max-seens 1:20# tell users if someone was !seen'ing for themset tell-seens 1# check if the user was online under a different nickset fuzzy-search 1# allow user to include wildcards in the search?set wildcard-search 1# break search if there are more than x matchesset max-matches 250# forward a request to other bots, if a !seen returned no result?set botnet-seens 1# store channels, which are +secret on the bot as [secret]?set hide-secret-chans 1# backup the seen data every x minutesset save-seens 60##############   AI Settings############ this setting configures on which sentences your bot should# attempt to do an ai-seen. Each of them is a simple wildcard# mask. Set this to "" if you want to deactivate ai-seens or# create more precise masks if the bots reacts too often.set ai-seen-binds {  "${nick}*seen*"  "${botnet-nick}*seen*"  "${nick}*gesehen*"  "${botnet-nick}*gesehen*"}# this is just the same as above, but if triggered it will# not do an ai-seen, but display its seen-stats.set ai-seenstats-binds {  "${nick}*seenstats*"  "${botnet-nick}*seenstats*"}# when doing an AI seen, ignore the following words (otherwise# the bot might give weird answers like "&lt;bot&gt; nick, bot was last seen..." :)set ai-seen-ignore "$nick ${botnet-nick} seen"##############   special stuff (can be ignored in most cases)############ Maximum length of requested nick that will still be processed.# (by default this is eggdrop's configured nick-length)set seen-nick-len ${nick-len}# if the user is known by the bot, log their handle instead of the nick# (not recommended, might cause confusion by the users)set use-handles 0##############   outdated settings (only important for eggdropv1.4 users)############ channels where you do not want your bot to reply to public queriesset no-pub-seens "#help"# channels where you want your bot to send replies via notice to the user and# not to the channelset quiet-seens ""# same as quiet-seens but for AI seenset quiet-ai-seens ""# channels where you do not want your bot to log seen dataset no-seendata "#help" ################################################################################ end of configuration# just ignore everything below ^_^###############################################################################bind chjn - * *chjn:gseenbind chpt - * *chpt:gseencatch "unbind pub - !seen *pub:!seen"catch "unbind pub - !seennick *pub:!seennick"catch "unbind pub - !seenstats *pub:!seenstats"bind pub - ${cmdchar}seen *pub:!seenbind pub - ${cmdchar}seennick *pub:!seennickbind pub - ${cmdchar}seenstats *pub:!seenstatsforeach bnd [binds pubm] {  if {([lindex $bnd 2] == "*pubm:seen") || ([lindex $bnd 2] == "*pub:!seenstats")} {    unbind [lindex $bnd 0] [lindex $bnd 1] [lindex $bnd 2] [lindex $bnd 4]  }}if {${ai-seen-binds} != ""} {  foreach mask ${ai-seen-binds} {    bind pubm -|- "% [subst $mask]" *pubm:seen  }}if {${ai-seenstats-binds} != ""} {  foreach mask ${ai-seenstats-binds} {    bind pubm -|- "% [subst $mask]" *pub:!seenstats  }}</code></pre></div>i see the pub bind for the commands but cant find the process for it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Aug 13, 2021 4:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
