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

	<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-02-23T17:29:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-02-23T17:29:27-04:00</updated>

		<published>2021-02-23T17:29:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109427#p109427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109427#p109427"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109427#p109427"><![CDATA[
i tried it  like this and it seems to work altho not sure if this is proper:<br><div class="codebox"><p>Code: </p><pre><code>#syntax:/msg bot chanset channel -+somesettingbind msg n chanset pm_chansetproc pm_chanset {nick uhost handle text} {   set chan [join [lindex [split $text] 0]]   set msg [join [lrange [split $text] 1 end]]  set items [split $text]  if {[llength $items] &lt; 2} {  putnow "notice $nick :Syntax chanset #channel +/-some-setting"    ; return }   pub:chanset $nick $uhost $handle $chan $msg} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Feb 23, 2021 5:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-02-23T16:49:10-04:00</updated>

		<published>2021-02-23T16:49:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109426#p109426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109426#p109426"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109426#p109426"><![CDATA[
i was looking at : <a href="http://forum.egghelp.org/viewtopic.php?p=95528#95528" class="postlink">http://forum.egghelp.org/viewtopic.php?p=95528#95528</a><br>it looks usefull for this porpose but im not sure how to use it to combine  the  two to have public command and private message combined in 1 proc if possible<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Feb 23, 2021 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-02-23T16:25:43-04:00</updated>

		<published>2021-02-23T16:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109425#p109425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109425#p109425"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109425#p109425"><![CDATA[
thanks i tried that and it Gives me the Same result<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Feb 23, 2021 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-02-23T15:54:15-04:00</updated>

		<published>2021-02-23T15:54:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109424#p109424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109424#p109424"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109424#p109424"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind MSG n|n chanset pub:chansetproc pub:chanset {nick host hand text} {set chan [lindex [split $text] 0]set target [lindex [split $text] 1 end]set value [lassign $target mode]if {![info exists value] || $value eq ""} {catch {channel set $chan $mode} error} else {catch {channel set $chan $mode $value} error}if {$error == ""} {putnow "NOTICE $nick :Successfully set $text"} else {putnow "NOTICE $nick :Error setting $text: [lindex $error 0]..."}}</code></pre></div>Not tested  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue Feb 23, 2021 3:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-02-23T15:42:37-04:00</updated>

		<published>2021-02-23T15:42:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109423#p109423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109423#p109423"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109423#p109423"><![CDATA[
i tried this but if the mode isnt filled it still  seems to execute wich doesnt seem right <br><br>for example doing: chanset #channel <br>outputs: Successfully set on #channel<br><div class="codebox"><p>Code: </p><pre><code>bind msg n chanset pm_chansetproc pm_chanset {nick host hand text} {  lassign [split $text] chanX2 chansetpart   if {![info exists chanX2] || $chansetpart eq ""} {      catch {channel set $chanX2 $chansetpart} error   } else {      catch {channel set $chanX2 $chansetpart} error   }   if {$error == ""} {      putnow "PRIVMSG $nick :Successfully set $chansetpart on $chanX2"   } else {      putnow "PRIVMSG $nick :Error setting $text: [lindex $error 0]..."   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Feb 23, 2021 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-02-23T17:29:49-04:00</updated>

		<published>2021-02-23T12:29:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109422#p109422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109422#p109422"/>
		<title type="html"><![CDATA[chanset via msg command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109422#p109422"><![CDATA[
i was wondering how this could  be modified to use with private msging the bot instead of public command on channel<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|n .chanset pub:chanset proc pub:chanset {nick uhost hand chan text} {   set value [lassign $text mode]   if {![info exists value] || $value eq ""} {      catch {channel set $chan $mode} error   } else {      catch {channel set $chan $mode $value} error   }   if {$error == ""} {      putnow "NOTICE $nick :Successfully set $text"   } else {      putnow "NOTICE $nick :Error setting $text: [lindex $error 0]..."   }}</code></pre></div>so instead of .chanset +somesetting on channel<br>to use chanset #channel +somesetting in PM of Bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Feb 23, 2021 12:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
