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

	<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>2006-04-19T11:40:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-19T11:40:46-04:00</updated>

		<published>2006-04-19T11:40:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62100#p62100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62100#p62100"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62100#p62100"><![CDATA[
works, big thx!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Wed Apr 19, 2006 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-18T14:21:12-04:00</updated>

		<published>2006-04-18T14:21:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62076#p62076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62076#p62076"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62076#p62076"><![CDATA[
<blockquote class="uncited"><div>The problem is, that you can not change the key if you don't remove it first. And to remove it, you must know the current key, because "mode #chan -k" dont work. Is it possible, that the script check which key is actually set an remove it first with mode "#chan -k key"?</div></blockquote>This should work for that network:<div class="codebox"><p>Code: </p><pre><code>proc keychan {n u h c t} {   if {![string match -nocase $::masterchannel $c]} {       return 0   }   foreach i $::keychannels {      if {[botisop $i]} {         set oldkey [lindex [split [getchanmode $chan]] 1]         putserv "MODE $i -k $oldkey"         putserv "MODE $i +k $t"      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Apr 18, 2006 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-18T13:42:01-04:00</updated>

		<published>2006-04-18T13:42:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62075#p62075</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62075#p62075"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62075#p62075"><![CDATA[
The problem is, that you can not change the key if you don't remove it first. And to remove it, you must know the current key, because "mode #chan -k" dont work. Is it possible, that the script check which key is actually set an remove it first with mode "#chan -k key"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Tue Apr 18, 2006 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-18T12:35:47-04:00</updated>

		<published>2006-04-18T12:35:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62072#p62072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62072#p62072"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62072#p62072"><![CDATA[
<blockquote class="uncited"><div>Not at QuakeNet and i still have no ideas to solve this problem.</div></blockquote>Try putting in some putlogs to see what goes on, such as:<div class="codebox"><p>Code: </p><pre><code>proc keychan {n u h c t} {   putlog "recieved command from $n on $c"   if {![string match -nocase $::masterchannel $c]} {        putlog "channel does not match $::masterchannel"       return 0    }   foreach i $::keychannels {      if {[botisop $i]} {         putlog "changing key in $c to $t"         putserv "MODE $i +k $t"      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Tue Apr 18, 2006 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-18T12:24:38-04:00</updated>

		<published>2006-04-18T12:24:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62070#p62070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62070#p62070"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62070#p62070"><![CDATA[
Not at QuakeNet and i still have no ideas to solve this problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Tue Apr 18, 2006 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-17T16:17:45-04:00</updated>

		<published>2006-04-17T16:17:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62041#p62041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62041#p62041"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62041#p62041"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc keychan {n u h c t} {   if {![string match -nocase $::masterchannel $c]} { return 0 }   foreach i $::keychannels {      if {[botisop $i]} {         putserv "MODE $i +k $t"      }   }}</code></pre></div>Works whether a key is set or not.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Mon Apr 17, 2006 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-17T13:22:59-04:00</updated>

		<published>2006-04-17T13:22:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62039#p62039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62039#p62039"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62039#p62039"><![CDATA[
don't work, any mistake in the code?<br><br>Edit: Error Found: If there is any channel key set, the bot don't change it. If there is no key, it works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Mon Apr 17, 2006 1:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-17T13:17:05-04:00</updated>

		<published>2006-04-17T13:17:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62038#p62038</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62038#p62038"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62038#p62038"><![CDATA[
replace the procedure<div class="codebox"><p>Code: </p><pre><code>proc keychan {n u h c t} {   if {![string match -nocase $::masterchannel $c]} { return 0 }   foreach i $::keychannels {      if {[botisop $i]} {putserv "MODE $i +k $t" -next}   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Mon Apr 17, 2006 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-17T11:20:22-04:00</updated>

		<published>2006-04-17T11:20:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62028#p62028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62028#p62028"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62028#p62028"><![CDATA[
My mistake, i meant the channel password.<br><br>On !globalkey newpw, the bot should set the "newpw" on all keychannels. <br><br>Thx in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Mon Apr 17, 2006 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-04-15T15:03:21-04:00</updated>

		<published>2006-04-15T15:03:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61970#p61970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61970#p61970"/>
		<title type="html"><![CDATA[globalkey]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61970#p61970"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set keychannels "#chan1 #chan2"set masterchannel "#chanxy"bind pub m !globalkey keychanproc keychan {n u h c t} {   if {![string match -nocase $::masterchannel $c]} { return 0 }   foreach i $::keychannels {      if {[botisop $i]} {putserv "MODE $i :$t" -next}   }   savechannels}</code></pre></div>Tested, working.<br><br>Includes savechannels (as asked for), however changing the channel record wasn't asked for.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Sat Apr 15, 2006 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Godzilla]]></name></author>
		<updated>2006-04-15T13:19:03-04:00</updated>

		<published>2006-04-15T13:19:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61964#p61964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61964#p61964"/>
		<title type="html"><![CDATA[Change key for several channels]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61964#p61964"><![CDATA[
Hi all,<br><br>i need a script to change the channel key at the same time in all channels (channels set in the script) and update the chanfile.<br><br><br>Variables: <br>keychannels: #chan #chan1 #chan2<br>masterchannel: #chanxy<br><br>Masterchannel: only in this channel can the command be executed<br>Keychannels: List of channels where the key will be changed on command<br><br>Command !globalkey xy<br><br>Can someone help me with this request?<br><br>Thanks in advance.<br><br>//Godzilla<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7542">Godzilla</a> — Sat Apr 15, 2006 1:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
