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

	<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-01-13T03:58:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-13T03:58:53-04:00</updated>

		<published>2003-01-13T03:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15238#p15238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15238#p15238"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15238#p15238"><![CDATA[
lol  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing">  send me a lotta money... or pay the all the loans I have and I'll make whatever script you want  <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=852">Papillon</a> — Mon Jan 13, 2003 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-01-12T16:04:39-04:00</updated>

		<published>2003-01-12T16:04:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15232#p15232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15232#p15232"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15232#p15232"><![CDATA[
Thx a lot Papillon. If I can help you ever, tell me <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=1729">ProXy</a> — Sun Jan 12, 2003 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-12T10:59:27-04:00</updated>

		<published>2003-01-12T10:59:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15221#p15221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15221#p15221"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15221#p15221"><![CDATA[
it's your lucky day :p hehe nah... I was bored so I made this little code.. it will give exactly the same info as .channel command in partyline.. only difference is that it does not return key of a channel (safty reason) ... and it does not line it up neatly as the partyline command... other than that it's the same <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>bind pub - .channel channel_in_tclproc channel_in_tcl {nick host hand chan text} {if {[validchan [lindex [split $text] 0]]} {set mems 1foreach m [chanlist [lindex [split $text] 0]] {if {[validuser [nick2hand $m [lindex [split $text] 0]]} { incr mems }}set modes [lindex [split [getchanmode [lindex [split $text] 0]]] 0]puthelp "PRIVMSG $chan :Channel [lindex [split $text] 0], $mems members, mode $modes\:"puthelp "PRIVMSG $chan :(n = owner, m = master, o = op, d = deop, b = bot)"puthelp "PRIVMSG $chan : NICKNAME    HANDLE     JOIN  IDLE  USER@HOST"foreach n [chanlist [lindex [split $text] 0]] {if {[isop $n [lindex [split $text] 0]]} { set info "@$n"} elseif {[isvoice $n [lindex [split $text] 0]]} {set info "+$n"} else { set info $n }set h [nick2hand $n [lindex [split $text] 0]]set j [getchanjoin $n [lindex [split $text] 0]]set j [clock format $j -format "%H:%M"]set i "[getchanidle $n [lindex [split $text] 0]]m"set hst [getchanhost $n [lindex [split $text] 0]]if {[matchattr $h n]} { set fl "n" } elseif {[matchattr $h m]} { set fl "m"} elseif {[matchattr $h o]} { set fl "o"} elseif {[matchattr $h d]} { set fl "d"} elseif {[matchattr $h b]} { set fl "b" } else { set fl "-" }puthelp "PRIVMSG $chan :$info  $h  $j $fl $i $hst"}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sun Jan 12, 2003 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-12T09:52:02-04:00</updated>

		<published>2003-01-12T09:52:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15213#p15213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15213#p15213"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15213#p15213"><![CDATA[
You will have tyo re-create the ".channel" commands C code, in Tcl.<br><br>There is no easy way to request information from a partyline command. All this ifnormation is output to the partyline, and has no other way of capturing or re-direction, other than to use a loopback connection (make a script that connect to the bot, requests the ifnormation and posts it. No simple, and slow~).<br><br>However, all of the ifnormation that is available in the DCC based ".channel" command, can be obtained using Tcl commands. You simply have to send the information to the destination in a formatted way.<br><br>See the "chanlist" command in tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Jan 12, 2003 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-01-12T09:41:43-04:00</updated>

		<published>2003-01-12T09:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15210#p15210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15210#p15210"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15210#p15210"><![CDATA[
Well I think you missed me. I will try to explain it another way: All People should be allowed to type ".channel a#bc" in any channel as a public command. The eggdrop should response to that channel with the same thing he would resond to the partyline! I just want an Alias to the partyline command ".channel #abc" that is public!<br><br>When I am in #abc and type ".channel #xyz" the eggdrop should display all information to the channel that is also shown in the partyline!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Jan 12, 2003 9:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-12T09:06:41-04:00</updated>

		<published>2003-01-12T09:06:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15203#p15203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15203#p15203"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15203#p15203"><![CDATA[
WHat you have asked for, is posibble, but is a tad tricky.<br><br>First off. Is what you are asking for is this?<br>Someone in a channel types ".channel #abc"<br>The messages is displayed to users in the partyline.<br><br>It would all depednd who you wanted to display it to in the partyline.<br><br>All users, on all bots? Then use the "dccbroadcast" comand.<br><br>All users on on bot? Then you will have to use either "putlog", or foreach through the list of partyline users obtained from "dcclist".<br><br>One user obn the bot? This is a tad tricky. How do you know which user to send to? If you are going to send to the handle, assoiated with the nickname of the person making the request, then you can use "hand2idx". Otherwise, we will need more info.<br><br>As for responding in a channel. See the hundres of Tcl script that do this sort of thing. They are show examples of output to a channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Jan 12, 2003 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-01-12T08:05:08-04:00</updated>

		<published>2003-01-12T08:05:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15200#p15200</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15200#p15200"/>
		<title type="html"><![CDATA[.channel #abc as public command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15200#p15200"><![CDATA[
Hello,<br><br>I would like to have the ".channel #abc" response in the partyline as answer for the public channel command ".channel #abc". I have written everything, to check the user`s input, but I don`t know how to make the bot answer in the specified channel!<br><br>First of all I need to know, how to give the eggdrop the ".channel #abc" command via the tcl to it`s partyline. The second thing is: How can I show the response of the eggdrop in a channel, instead of the partyline?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Jan 12, 2003 8:05 am</p><hr />
]]></content>
	</entry>
	</feed>
