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

	<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>2017-01-24T07:38:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-24T07:38:57-04:00</updated>

		<published>2017-01-24T07:38:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105739#p105739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105739#p105739"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105739#p105739"><![CDATA[
tested some modes it doesnt seem to react to i did like <br><br>LockModes: cimMSNROAk<br><br>yet when setting like +A on channel it didnt remove<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Jan 24, 2017 7:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-01-23T11:47:41-04:00</updated>

		<published>2017-01-23T11:47:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105738#p105738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105738#p105738"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105738#p105738"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>namespace eval lockCheck {setudef str lockModesbind time * * [namespace current]::timedCheckbind pub m|m !checklock [namespace current]::chanCheckproc check {chan {modes ""}} {if {![string length $modes]} {set modes [split [channel get $chan lockModes] ""]}set cm [lindex [split [getchanmode $chan] +] 1]if {[string first k $cm] != -1} {scan $cm {%s%s} cm key}foreach m [split $cm ""] {if {[string first $m $modes] != -1} {if {$m eq "k"} {pushmode $chan -k $key} else {pushmode $chan -$m}}}}proc timedCheck {args} {foreach chan [channels] {if {![botisop $chan]} continuecheck $chan}}proc chanCheck {nick uhost hand chan text} {if {[scan $text {%s} modes] != 1} {puthelp "NOTICE $nick :Usage: !checklock &lt;modes&gt;"} else {check $chan $modes}}}</code></pre></div>Changed the above code to make it case sensitive and got the !checklock inside. Haven't tested but in theory should work as expected. <br><br>PS: You should restart the bot to remove the old binds cos have been changed in the new code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 23, 2017 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2017-01-23T05:33:18-04:00</updated>

		<published>2017-01-23T05:33:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105735#p105735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105735#p105735"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105735#p105735"><![CDATA[
i tried yours caesar it seems to not make difference between lower and upper case while there is a difference for example we want to use N not n and use T not t as they  both are default modes and shouldnt be removed ever<br><br><br><br><br>.chanset * lockModes cimMRcSNk<br><br>resulted in:<br><br><br>10:24:23  +ctcp  Sets Mode on  #Cappuccino  to:  +imk kjhffd <br>10:25:01  &amp;Hawk  Sets Mode on  #Cappuccino  to:  -imCnk kjhffd <br>10:25:02  &amp;ChanServ  Sets Mode on  #Cappuccino  to:  +n <br>10:26:01  &amp;Hawk  Sets Mode on  #Cappuccino  to:  -n <br>10:26:02  &amp;ChanServ  Sets Mode on  #Cappuccino  to:  +n <br>10:27:01  &amp;Hawk  Sets Mode on  #Cappuccino  to:  -n <br>10:27:01  &amp;ChanServ  Sets Mode on  #Cappuccino  to:  +n<br><br><br>is there a way to use with pub cmd like<br><br>!checklock NRMcSk<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jan 23, 2017 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-26T03:34:19-04:00</updated>

		<published>2015-04-26T03:34:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103947#p103947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103947#p103947"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103947#p103947"><![CDATA[
The one I posted takes care of that as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 26, 2015 3:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-04-25T10:26:13-04:00</updated>

		<published>2015-04-25T10:26:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103941#p103941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103941#p103941"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103941#p103941"><![CDATA[
hi SpiKe^^ <br>but its tcl lacks some ways that should be<br><br>example:   k l S<br><br>it is possible to add these modes  ???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sat Apr 25, 2015 10:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-04-08T18:22:23-04:00</updated>

		<published>2015-04-08T18:22:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103766#p103766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103766#p103766"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103766#p103766"><![CDATA[
nice tnx caesar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Apr 08, 2015 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-08T06:11:57-04:00</updated>

		<published>2015-04-08T06:11:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103765#p103765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103765#p103765"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103765#p103765"><![CDATA[
Honestly I would rather rely on a bind time of one minute or whatever suits your need than to use timers.<div class="codebox"><p>Code: </p><pre><code>namespace eval lockCheck {setudef str lockModesbind time * * [namespace current]::checkproc check {args} {foreach chan [channels] {if {![botisop $chan]} continueset modes [split [channel get $chan lockModes] ""]set cm [lindex [split [getchanmode $chan] +] 1]if {[string first k $cm] != -1} {scan $cm {%s%s} cm key}foreach m [split $cm ""] {if {[lsearch -nocase $modes $m] != -1} {if {$m eq "k"} {pushmode $chan -k $key} else {pushmode $chan -$m}}}}}}</code></pre></div>Difference between mine and yours?<br>- can have different lock modes to be removed for each channel in particular, just <em class="text-italics">.chanset #channel lockModes mki</em> for #channel and <em class="text-italics">.chanset #anotherchannel lockModes</em> for #anotherchannel for instance, or to be more specific <em class="text-italics">.chanset #channel lockModes cimMNR</em><br>- supports removal of a channel key if such a mode is desired to be removed<br>- doesn't require any change of the actual script file so all changes in channel lock modes are on-the-fly<br>- by using <em class="text-italics">pushmode</em> it will push all mode changes in just one line rather than spamming with multiple mode changes<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Apr 08, 2015 6:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-04-07T23:09:22-04:00</updated>

		<published>2015-04-07T23:09:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103763#p103763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103763#p103763"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103763#p103763"><![CDATA[
oh that one seems working too tnx spike^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 07, 2015 11:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-07T22:10:51-04:00</updated>

		<published>2015-04-07T22:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103762#p103762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103762#p103762"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103762#p103762"><![CDATA[
Try this.<div class="codebox"><p>Code: </p><pre><code>###########################################################################  checklock.tcl v.1.0                                             ######        checklock.tcl v1.0 has been made and development          ######                             BY                                   ######        (c) SnowBot (ha0) Script Team Development (c)             ######  *** Copyright (C) 1999-2002 Clovis  #Mania @ DalNet ***         ######  The purpose from this script is for educational only            ######  Not available for commercial purpose                            ######  For contact you can email me at hendra_asianto@hotmail.com      ######  Our Homepage on www.snowbot.s5.com or visit our chan on #mania  #################################################################################################################################################### --- Don't change anything below here if you don't know how ! --- ##### ---------------------------------------------------------------- ##### NOTE : THIS SCRIPT CAN SET BECOME AUTO AWAY .TCL  WITH RANDOM AWAY MSG :)##  DEPEND'S YOUR IDEAL :)NOW... I JUST CAN GIVE A LITTLE WAY# Set how long that bot must check modelock back again.set timechks 30# Version number - DON'T TOUCH!### Start Call Command (made safe from rehash starting double loops)if {![info exists chklock_running]} {  timer $timechks [list snowbotchk]  set chklock_running 1}proc snowbotchk {} {  global timechks  foreach chan [channels] {    if {[botisop $chan]} {  set modes ""      set chanmode [lindex [split [getchanmode $chan]] 0]      if {[string match +*c* $chanmode]} { append modes c }      if {[string match +*i* $chanmode]} { append modes i }      if {[string match +*m* $chanmode]} { append modes m }      if {[string match +*M* $chanmode]} { append modes M }      if {[string match +*N* $chanmode]} { append modes N }      if {[string match +*R* $chanmode]} { append modes R }      if {$modes ne ""} {  putserv "MODE $chan -$modes"  }    }  }  timer $timechks [list snowbotchk]}putlog " . . : : checklock . T C L : : . .Loaded Successfuly..."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Tue Apr 07, 2015 10:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2015-04-07T20:50:54-04:00</updated>

		<published>2015-04-07T20:50:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103761#p103761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103761#p103761"/>
		<title type="html"><![CDATA[check channel modes and unlock channel if locked]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103761#p103761"><![CDATA[
greetings, im using this tcl at the moment it checks for the modes that lock channel incase some OP forgot to remove them i was wondering if it could be modified to only remove the actuall modes that are set and detected unlike as it is now where it removes the modes anyway regardless if they are set or not<br><div class="codebox"><p>Code: </p><pre><code>###########################################################################  checklock.tcl v.1.0                                             ######        checklock.tcl v1.0 has been made and development          ######                             BY                                   ######        (c) SnowBot (ha0) Script Team Development (c)             ######  *** Copyright (C) 1999-2002 Clovis  #Mania @ DalNet ***         ######  The purpose from this script is for educational only            ######  Not available for commercial purpose                            ######  For contact you can email me at hendra_asianto@hotmail.com      ######  Our Homepage on www.snowbot.s5.com or visit our chan on #mania  #################################################################################################################################################### --- Don't change anything below here if you don't know how ! --- ##### ---------------------------------------------------------------- ##### NOTE : THIS SCRIPT CAN SET BECOME AUTO AWAY .TCL  WITH RANDOM AWAY MSG :)##  DEPEND'S YOUR IDEAL :)NOW... I JUST CAN GIVE A LITTLE WAY# Set how long that bot must check modelock back again.set timechks 30# Version number - DON'T TOUCH!### Start Call Commandtimer $timechks snowbotchkproc snowbotchk {} {global timechksforeach chan [channels] {if {[botisop $chan]} {  if {[string match +*m* [lindex [getchanmode $chan] 0]] || [string match +*i* [lindex [getchanmode $chan] 0]] || [string match +*N* [lindex [getchanmode $chan] 0]] || [string match +*R* [lindex [getchanmode $chan] 0]] || [string match +*M* [lindex [getchanmode $chan] 0]] || [string match +*c* [lindex [getchanmode $chan] 0]]} {      putserv "MODE $chan -cimMNR"   } }}timer $timechks snowbotchk}putlog " . . : : checklock . T C L : : . .Loaded Successfuly..." </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 07, 2015 8:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
