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

	<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-02-06T10:06:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-02-06T10:06:33-04:00</updated>

		<published>2003-02-06T10:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16249#p16249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16249#p16249"/>
		<title type="html"><![CDATA[joing the kline and kill msgs into 1 proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16249#p16249"><![CDATA[
okay I'm haveing a bit of trouble here, cause in the kill phrase it only sees the kill, but for the k-line part its picking up every and all server msgs, how can i fix this ? here is how the proc goes right now<br><br>proc kill_kline_phrase_2 {from key text} {<br>        if {[string match "*KILL*" $text] || [string match "*K-line*" $text]} {<br>                set text [split $text]<br>                set oper [lindex $text 10]<br>                set target [string trimright [lindex  $text 8] "."]<br>                set reason [string trim [join [lrange $text 13 end]] "()"]<br>                putserv "privmsg #Smokey :\002New Kill Active\002: Oper:(\002$oper\002) Killed:(\002$target\002) for Reason:(\002$reason\002)"<br>                return 0<br>        } else {<br>                set oper [lindex $text 4]<br>                set target [string trim [lindex $text 8] "[]"]<br>                set reason [string trim [lindex $text 9] "[]"]<br>                putserv "privmsg #smokey :\002New Kline Active\002: Oper:(\002$oper\002) Klined:(\002$target\002) for Reason:(\002$reason\002)"<br>                return 0<br>        }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Feb 06, 2003 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-31T22:17:44-04:00</updated>

		<published>2003-01-31T22:17:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16026#p16026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16026#p16026"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16026#p16026"><![CDATA[
bind raw - NOTICE kill2_phrase<br>proc kill2_phrase {from key text} {<br>        global blah(chan)<br>        set oper [lindex $text 10]<br>        set target [lindex $text 8]<br>        set reason [lindex $text 13]<br>        set server [lindex $from 0]<br>        putserv "privmsg #channel :\002OPERKILL\002:$oper Killed $target for $reason on $server"<br>        return 0<br>}<br><br>this will receive all the server msgs, I've tried to just bind it to KILL, still nothing, this looks like the only way i can get the kill msg.  I know I would either split the text, or some how only get it to look for "KILL" then output the information<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Fri Jan 31, 2003 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-31T07:37:16-04:00</updated>

		<published>2003-01-31T07:37:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16002#p16002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16002#p16002"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16002#p16002"><![CDATA[
<blockquote class="uncited"><div>okay i have it working, though it now displays ever server msgs, and then Displays in the channel the output style i have.  I'm not sure on the right sntax on how to ge it to only look for "KILL"<br><br>I was thinking [lindex [split $arg == "KILL" 0]]<br><br>would this be right ?</div></blockquote>Can you copy and paste the tcl you have written or post a link to it? If you are only interested in KILL's you probably can bind to the RAW with keyword KILL.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Jan 31, 2003 7:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-31T07:31:21-04:00</updated>

		<published>2003-01-31T07:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16001#p16001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16001#p16001"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16001#p16001"><![CDATA[
okay i have it working, though it now displays ever server msgs, and then Displays in the channel the output style i have.  I'm not sure on the right sntax on how to ge it to only look for "KILL"<br><br>I was thinking [lindex [split $arg == "KILL" 0]]<br><br>would this be right ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Fri Jan 31, 2003 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-31T06:34:24-04:00</updated>

		<published>2003-01-31T06:34:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16000#p16000</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16000#p16000"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16000#p16000"><![CDATA[
<blockquote class="uncited"><div>so in other words, I'll have to make a 40k proc basicly just over retriveing klines, glines, kills, or what ever else is vital information ?</div></blockquote>Let us see. You started the thread 4 days ago with:<br><blockquote class="uncited"><div>i need al ittle help with this one, i'm wanting to take raw server msgs and output them to a channel. What would be the best way to go about doing that?</div></blockquote>This is a completely non specific and general question. So yes, if you want to catch all raw server messages then you make the RAW binds and call a proc that outputs the messages to your channel. If you need only specific RAW's then you only bind to those specific RAW's. Easy as that.<br><br>The answer was already given to you by stdragon. So, why are you re-iterating the answer, instead of starting to just create the Tcl? <br>How difficult can it be to look up the rfc and create the RAW bindings you need?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Jan 31, 2003 6:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-31T06:28:51-04:00</updated>

		<published>2003-01-31T06:28:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15999#p15999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15999#p15999"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15999#p15999"><![CDATA[
Yes and no. It all depends how much, and what information you want.<br><br>Some scripts are large yes. I would greatfully love for the programming language that reuires only 3 lines of code, to do everything I ever dreamed of.<br><br>But thats silly talk.<br><br>First, you should start from the begining, as most of this thread no seems to be bits thrown here and there, then a comment from you, and we don't know what it relates to.<br><br>You need to find out how the server sends the information about K, G and whatever information you are beind sent.<br><br>Without this, it's pointless even attempting to make a bind. It's simalar to not knowing how to cook baked beans, so you turns the deep-fat-fryer on in preoperation (note the trend on food here).<br><br>Now you need to know what format each of the lines come in. One could have a totaly different set of text ot the next. This is needed, so we know how to parse out the information we need to forward.<br><br>Depending on the two above, we can now think about the design of the script. Can it be one proc? Does it have to use multiple procs everywhere? Is there any common ifnormation? Howe do we want it displayed, and can we use one format for this?<br><br>Wihtout this sort of information, we aint gonna have a clue what sort of sized script is needed.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jan 31, 2003 6:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-31T06:14:27-04:00</updated>

		<published>2003-01-31T06:14:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15998#p15998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15998#p15998"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15998#p15998"><![CDATA[
so in other words, I'll have to make a 40k proc basicly just over retriveing klines, glines, kills, or what ever else is vital information ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Fri Jan 31, 2003 6:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T15:23:18-04:00</updated>

		<published>2003-01-30T15:23:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15974#p15974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15974#p15974"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15974#p15974"><![CDATA[
Easiest way is to modify the eggdrop source code. If you want to make this tcl-only, it will be pretty hard. Use the raw bind, but you have to bind every single irc message type. Numerics too. It's not hard, really, but it is time consuming!<br><br>bind raw - 001 yourproc<br>bind raw - 002 yourproc<br>...<br><br>proc yourproc {from key text} {<br>  putlog "$from $key $text"<br>  return 0<br>}<br><br>Based on that you should be able to do whatever you want! To output them to a channel, change the putlog line to, putserv "privmsg #sheep :$from $key $text" (notice the : before $from, it's important).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-30T09:12:52-04:00</updated>

		<published>2003-01-30T09:12:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15963#p15963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15963#p15963"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15963#p15963"><![CDATA[
i don't think that will work, and I'm still haveing trouble trying to get any or all server msgs from the server =/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Thu Jan 30, 2003 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-29T10:56:00-04:00</updated>

		<published>2003-01-29T10:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15915#p15915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15915#p15915"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15915#p15915"><![CDATA[
lying??? what part of my posts was i lying? do I know you or something?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Wed Jan 29, 2003 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-02-01T03:29:01-04:00</updated>

		<published>2003-01-29T01:34:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15897#p15897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15897#p15897"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15897#p15897"><![CDATA[
[edit]heh, wrong smokey :/[/edit]<p>Statistics: Posted by Guest — Wed Jan 29, 2003 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-28T23:52:41-04:00</updated>

		<published>2003-01-28T23:52:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15896#p15896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15896#p15896"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15896#p15896"><![CDATA[
so i would have to use [lindex [split $arg == "KILL"] ]<br><br>and make a bind raw - NOTICE <br><br><br>or something to that effect<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Tue Jan 28, 2003 11:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-27T10:03:53-04:00</updated>

		<published>2003-01-27T10:03:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15862#p15862</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15862#p15862"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15862#p15862"><![CDATA[
The RAW code you have seen, is the reply sent to the OPER.<br><br>Eggdrop will not see this.<br><br>From what I understand, messages like these are sent in a SNOTICE<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 27, 2003 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SmokeyOne]]></name></author>
		<updated>2003-01-27T09:11:19-04:00</updated>

		<published>2003-01-27T09:11:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15861#p15861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15861#p15861"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15861#p15861"><![CDATA[
from what i read in the rfc this is the only thing about kill msgs i can find<br>361IEUDRPL_KILLDONE<br><br>the out put after a oper issuses a /kill username [reason] the server should send a msg like<br>Recived kill msg from blah. From operman path irc.someserver.com! irc2.someothererver.com!balh!operman (reasonhere)<br><br>what I'm wanting is to extract this information into something shorter like : Userkill for $victum from $oper reason : $reason<br><br>and outputing this to the channel i have setup.  I'm not sure on the code I'm woundering if its just like<br>bind raw 361 kill_phrase<br>proc kill_phrase { from key text} {<br>set $victum [lindex $arg 5]<br>set $oper [lindex $arg 6]<br>set $server [lindex $arg 10]<br>set $reason [lindex $arg 16]<br>putchan $chan "Userkill for $victum from $oper reason :$reason"<br>}<br><br>Thi sis my thought on how it would go<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2530">SmokeyOne</a> — Mon Jan 27, 2003 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-27T08:36:18-04:00</updated>

		<published>2003-01-27T08:36:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15858#p15858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15858#p15858"/>
		<title type="html"><![CDATA[outputing raw server msgs in realtime]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15858#p15858"><![CDATA[
It's all dependent on the command you are seding to the server.<br><br>The RFC will not just give you the RAW codes, but also the format of any data returned.<br><br>Unless we know what code you are expecting, and what details from it you need, we can't help further.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 27, 2003 8:36 am</p><hr />
]]></content>
	</entry>
	</feed>
