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

	<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>2020-08-25T16:35:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-25T16:35:09-04:00</updated>

		<published>2020-08-25T16:35:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108920#p108920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108920#p108920"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108920#p108920"><![CDATA[
Oh, didn't realise that *shrug*, anyway Thanks CrazyCat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Tue Aug 25, 2020 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-08-25T11:02:41-04:00</updated>

		<published>2020-08-25T11:02:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108919#p108919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108919#p108919"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108919#p108919"><![CDATA[
We didnt create anything we modified or rather i modified an existing code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Aug 25, 2020 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-25T00:48:55-04:00</updated>

		<published>2020-08-25T00:48:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108918#p108918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108918#p108918"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108918#p108918"><![CDATA[
I see, well me and simo have created a code to suit our needs, we'll post what we created in a few <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=12849">ComputerTech</a> — Tue Aug 25, 2020 12:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-08-24T00:46:15-04:00</updated>

		<published>2020-08-24T00:46:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108917#p108917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108917#p108917"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108917#p108917"><![CDATA[
Ok, I understand, and I think you didn't understand some little things<br>Kill is network wide, not channel relative. As I said before, you can catch the SIGN message in channels containing the killed message, but if John shares 9 channels with Bot, Bot will tell 9 times in #oper that John has been killed ?<br>And it will be false to say that john has been killed in #channel1, John was killed from the network.<br><br>If Bot1 kills John, Bot1 can advertise in #oper that it does because John must be punish in #channel1, no reason to wait for the server notice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Aug 24, 2020 12:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-23T21:57:49-04:00</updated>

		<published>2020-08-23T21:57:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108916#p108916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108916#p108916"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108916#p108916"><![CDATA[
I do not wish to relay to the same channel as the user has been killed in, <br>i wish to relay the kills to a specify, Oper Only channel, for monitoring<br><br>so if John is killed in #channel1<br>and Bot is in #channel1<br><br>in #oper  Bot will say  john has been killed in #channel1<br><br>Thats all i need <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=12849">ComputerTech</a> — Sun Aug 23, 2020 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-08-23T18:01:56-04:00</updated>

		<published>2020-08-23T18:01:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108915#p108915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108915#p108915"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108915#p108915"><![CDATA[
Well well well...<br>So you can just get the bind SIGN and check if it contains a kill prefix.<br><br>When you get the killed notice, the user is no more on chans, so you can't know if it was or not in a channel shared with the eggdrop.<br><br>And I don't understand why you want the eggdrop relays the kill on the channel the user was in when the kill is already the quit message of the user<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Aug 23, 2020 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-23T12:02:14-04:00</updated>

		<published>2020-08-23T12:02:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108911#p108911</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108911#p108911"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108911#p108911"><![CDATA[
Ok, let me try to describe again better.<br><br>User gets killed,  If user getting killed and bot shares a channel, output the kill message, if they do not share a channel, return<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sun Aug 23, 2020 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-08-23T11:49:04-04:00</updated>

		<published>2020-08-23T11:49:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108910#p108910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108910#p108910"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108910#p108910"><![CDATA[
$chan doesn't exists.<br>You received a kill notice (network/server event), there is no channel information.<br><br>The end of your procedure seems to be inverted:<div class="codebox"><p>Code: </p><pre><code>foreach c [channels] {   # list all channels the eggdrop is on   foreach n [chanlist $c] {      # list all people on $c channel      if {![botisop $c] &amp;&amp; [isbotnick $n] &amp;&amp; [isop $n $c] &amp;&amp; [ishalfop $n $c] &amp;&amp; [matchattr [nick2hand $n] $accessFlags $c]} {return}      putserv "privmsg $c [red] \-\-\[Killed\]\-\- [green] $nick2 [blue] $nick3 [brown] by: [red] $by [blue] Reason : [purple] $reason [nocolor]"   }}</code></pre></div>I'm not sure I understand your conditions to have the return:<br>"Bot is not @" AND "user is not bot" AND "user is @" AND "user is %" AND "user has $accessflags on channel"... Strange<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Aug 23, 2020 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-08-23T10:36:13-04:00</updated>

		<published>2020-08-23T10:36:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108909#p108909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108909#p108909"/>
		<title type="html"><![CDATA[Checking for if user shares common channel with bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108909#p108909"><![CDATA[
Hey all, so me and simo have been making a script that shows kill info, If the killed user and the bot shares a channel, this is the code we got so far<br>it's not currently working heh, this is the error.<div class="codebox"><p>Code: </p><pre><code>[15:35:27] Tcl error [serv:killed]: can't read "chan": no such variable</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind raw - NOTICE serv:killedproc serv:killed {from key text} {if {[string match *!*@* $from]} {return 0; # not a server notice}    if {[string match "*Received KILL message for*" $text]} {      set text [string map [list \017 ""] [stripcodes abcgru $text]]  #set nick2 [join [lrange [split $text] 6 7]]   set nick2 [lindex [split $text] 6]  set nick3 [lindex [split $text] 7]  set by [lindex [split $text] 9]  set reason [join [lrange [split $text] 10 end]]  foreach n [chanlist $chan] {  foreach c [channels] {    if {![botisop $c] &amp;&amp; [isbotnick $n] &amp;&amp; [isop $n $c] &amp;&amp; [ishalfop $n $c] &amp;&amp; [matchattr [nick2hand $n] $accessFlags $c]} {return}      putserv "privmsg $c [red] \-\-\[Killed\]\-\- [green] $nick2 [blue] $nick3 [brown] by: [red] $by [blue] Reason : [purple] $reason [nocolor]"   } }}return 0}</code></pre></div>Thanks in advanced all[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Sun Aug 23, 2020 10:36 am</p><hr />
]]></content>
	</entry>
	</feed>
