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

	<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-04-21T11:42:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-04-21T11:42:46-04:00</updated>

		<published>2020-04-21T11:42:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108293#p108293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108293#p108293"/>
		<title type="html"><![CDATA[partquit.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108293#p108293"><![CDATA[
Are you kidding me ?<br>Aren't you able to find these 4 lines and replace them ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Apr 21, 2020 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2020-04-21T08:51:35-04:00</updated>

		<published>2020-04-21T08:51:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108283#p108283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108283#p108283"/>
		<title type="html"><![CDATA[partquit.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108283#p108283"><![CDATA[
Can you Edit the script and paste ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Tue Apr 21, 2020 8:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-04-19T02:40:37-04:00</updated>

		<published>2020-04-19T02:40:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108252#p108252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108252#p108252"/>
		<title type="html"><![CDATA[partquit.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108252#p108252"><![CDATA[
You have unbalanced parentheses <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> each time with [regexp c [getchanmode $chan]], the closing parenthesis is missing.<br><br>Correct lines are <br><strong class="text-strong">quitcheck:pub</strong><div class="codebox"><p>Code: </p><pre><code>  if {([lindex [split $text] 0] == "") &amp;&amp; (![regexp c [getchanmode $chan]])} {putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [getTrigger]quitcheck on/off"; return}  if {([lindex [split $text] 0] == "") &amp;&amp; ([regexp c [getchanmode $chan]])} {putquick "PRIVMSG $chan :ERROR: Incorrect Parameters. SYNTAX: [getTrigger]quitcheck on/off"; return}</code></pre></div><strong class="text-strong">joinquit:pub</strong><div class="codebox"><p>Code: </p><pre><code>if {([lindex [split $text] 0] == "") &amp;&amp; (![regexp c [getchanmode $chan]])} {putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [getTrigger]joinquit on/off"; return}  if {([lindex [split $text] 0] == "") &amp;&amp; ([regexp c [getchanmode $chan]])} {putquick "PRIVMSG $chan :ERROR: Incorrect Parameters. SYNTAX: [getTrigger]joinquit on/off"; return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Apr 19, 2020 2:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2020-04-06T13:06:38-04:00</updated>

		<published>2020-04-06T13:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108163#p108163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108163#p108163"/>
		<title type="html"><![CDATA[partquit.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108163#p108163"><![CDATA[
I Found old TCL ( partquit. ) it has 2 error please help to fix this if anyone know. Thanks<br><br>!joinpart on - Working FINE<br><br>!joinquit on - Tcl error [joinquit:pub]: unbalanced open paren<br><br>!quitcheck on - Same error<blockquote class="uncited"><div>&lt;MuteServ&gt; [16:57:25] Tcl error [quitcheck:pub]: unbalanced open paren<br>&lt;MuteServ&gt; in expression "...c [getchanmode $chan]]"<br>&lt;MuteServ&gt; [16:58:19] Tcl error [joinquit:pub]: unbalanced open paren<br>&lt;MuteServ&gt; in expression "...c [getchanmode $chan]]"<br>&lt;MuteServ&gt; [17:00:00] Writing user file...<br>&lt;MuteServ&gt; [17:00:00] Writing channel file...<br>&lt;MuteServ&gt; [17:00:05] Tcl error [quitcheck:pub]: unbalanced open paren<br>&lt;MuteServ&gt; in expression "...c [getchanmode $chan]]"</div></blockquote><div class="codebox"><p>Code: </p><pre><code># $Id: partquit.tcl,v1.5.1 28/06/2016 6:14:12pm GMT +12 (NZST) IRCSpeed Exp $# This script covers 3 factors.# 1) quitcheck - monitors quits for abusive text, like autokills, excess floods, or spam# 2) joinpart - monitors joins/parts to channel and will set ban if joins exceed parttime# 3) joinquit - monitors joins/quits to channel and will set ban if quits exceed jointime## SYNTAX:# (these are available to Global OPs and Channel Master's and above)# ---------# !quitcheck on|off# !joinpart on|off# !joinquit on|off# /msg yourbot quitcheck #channel on|off# /msg yourbot joinpart #channel on|off# /msg yourbot joinquit #channel on|off# Set global trigger hereset trigger "!"# Set time in sec for how long someone should have stayed joined, before they part.set parttime "10"# Set time in sec for how long someone should have stayed joined, before they quit.set jointime "5"# Set your quit match pattern belowset quitwords {  "*excess flood*"  "*k-line*"  "*killed*"  "*join #*"  "*/server*"}# Set your exempt match pattern belowset exemptwords {  "*dontbanme*"  "*i live on IRCSpeed and all i got was this lousy k-line*"}# -----DONT EDIT BELOW-----bind pub - ${trigger}quitcheck quitcheck:pubbind pub - ${trigger}joinpart joinpart:pubbind pub - ${trigger}joinquit joinquit:pubbind msg - quitcheck quitcheck:msgbind msg - joinpart joinpart:msgbind msg - joinquit joinquit:msgbind part - * join:partbind sign - * join:quitbind sign - * quit:checksetudef flag quitchecksetudef flag joinpartsetudef flag joinquitproc getTrigger {} {  global trigger  return $trigger}proc quitcheck:pub {nick uhost hand chan text} {  global botnick  if {![matchattr [nick2hand $nick] o|m $chan]} {return}  if {([lindex [split $text] 0] == "") &amp;&amp; (![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [getTrigger]quitcheck on/off"; return}  if {([lindex [split $text] 0] == "") &amp;&amp; ([regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: Incorrect Parameters. SYNTAX: [getTrigger]quitcheck on/off"; return}  if {[lindex [split $text] 0] == "on"} {    if {[channel get $chan quitcheck] &amp;&amp; ![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already enabled."; return}    if {[channel get $chan quitcheck] &amp;&amp; [regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: This setting is already enabled."; return}    channel set $chan +quitcheck    puthelp "PRIVMSG $chan :Enabled QuitCheck Protection for $chan"    return 0  }  if {[lindex [split $text] 0] == "off"} {    if {![channel get $chan quitcheck] &amp;&amp; ![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already disabled."; return}    if {![channel get $chan quitcheck] &amp;&amp; [regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: This setting is already disabled."; return}    channel set $chan -quitcheck    puthelp "PRIVMSG $chan :Disabled QuitCheck Protection for $chan"    return 0  }}proc joinquit:pub {nick uhost hand chan text} {  global botnick  if {![matchattr [nick2hand $nick] o|m $chan]} {return}  if {([lindex [split $text] 0] == "") &amp;&amp; (![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [getTrigger]joinquit on/off"; return}  if {([lindex [split $text] 0] == "") &amp;&amp; ([regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: Incorrect Parameters. SYNTAX: [getTrigger]joinquit on/off"; return}  if {[lindex [split $text] 0] == "on"} {    if {[channel get $chan joinquit] &amp;&amp; ![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already enabled."; return}    if {[channel get $chan joinquit] &amp;&amp; [regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: This setting is already enabled."; return}    channel set $chan +joinquit    puthelp "PRIVMSG $chan :Enabled JoinQuit Protection for $chan"    return 0  }  if {[lindex [split $text] 0] == "off"} {    if {![channel get $chan joinquit] &amp;&amp; ![regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already disabled."; return}    if {![channel get $chan joinquit] &amp;&amp; [regexp c [getchanmode $chan]]} {putquick "PRIVMSG $chan :ERROR: This setting is already disabled."; return}    channel set $chan -joinquit    puthelp "PRIVMSG $chan :Disabled JoinQuit Protection for $chan"    return 0  }}proc joinpart:pub {nick uhost hand chan arg} {  global botnick  if {![matchattr [nick2hand $nick] o|m $chan]} {return}  if {[lindex [split $arg] 0] == ""} {putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [getTrigger]joinpart on|off"; return}  if {[lindex [split $arg] 0] == "on"} {    if {[channel get $chan joinpart]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already enabled."; return}    channel set $chan +joinpart    puthelp "PRIVMSG $chan :Enabled JoinPart Protection for $chan"    return 0  }  if {[lindex [split $arg] 0] == "off"} {    if {![channel get $chan joinpart]} {putquick "PRIVMSG $chan :\037ERROR\037: This setting is already disabled."; return}    channel set $chan -joinpart    puthelp "PRIVMSG $chan :Disabled JoinPart Protection for $chan"    return 0  }}proc joinquit:msg {nick uhost hand arg} {  global botnick  set chan [strlwr [lindex $arg 0]]  if {![matchattr [nick2hand $nick] o|m $chan]} {return}  if {[lindex [split $arg] 0] == ""} {putquick "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick joinquit #channel on/off"; return}  if {([lindex [split $arg] 1] == "") &amp;&amp; ([string match "*#*" $chan])} {putquick "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick joinquit $chan on/off"; return}  if {([lindex [split $arg] 1] == "on") &amp;&amp; ([string match "*#*" $chan])} {    if {[channel get $chan joinquit]} {putquick "NOTICE $nick :\037ERROR\037: This setting is already enabled."; return}    channel set $chan +joinquit    putquick "NOTICE $nick :Enabled JoinQuit Protection for $chan"  }  if {([lindex [split $arg] 1] == "off") &amp;&amp; ([string match "*#*" $chan])} {    if {![channel get $chan joinquit]} {putquick "NOTICE $nick :\037ERROR\037: This setting is already disabled."; return}    channel set $chan -joinquit    putquick "NOTICE $nick :Disabled JoinQuit Protection for $chan"  }}proc joinpart:msg {nick uhost hand arg} {  global botnick  set chan [strlwr [lindex $arg 0]]  if {![matchattr [nick2hand $nick] o|m $chan]} {return}  if {[lindex [split $arg] 0] == ""} {putquick "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick joinpart #channel on|off"; return}  if {[lindex [split $arg] 1] == ""} {putquick "NOTICE $nick :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: /msg $botnick joinpart $chan on|off"; return}  if {[lindex [split $arg] 1] == "on"} {    if {[channel get $chan joinpart]} {putquick "NOTICE $nick :\037ERROR\037: This setting is already enabled."; return}    channel set $chan +joinpart    putquick "NOTICE $nick :Enabled JoinPart Protection for $chan"  }  if {[lindex [split $arg] 1] == "off"} {    if {![channel get $chan joinpart]} {putquick "NOTICE $nick :\037ERROR\037: This setting is already disabled."; return}    channel set $chan -joinpart    putquick "NOTICE $nick :Disabled JoinPart Protection for $chan"  }}proc quit:check {nick uhost hand chan reason} {  global quitwords exemptwords  if {[channel get $chan quitcheck]} {    foreach exempt $exemptwords {      if {[string match -nocase $exempt $reason]} {return}    }    foreach quitmatch $quitwords {      if {([botisop $chan]) || (![validuser [nick2hand $nick]]) || (![isop $nick $chan]) || (![isvoice $nick $chan])} {        if {([string match -nocase $quitmatch $reason]) &amp;&amp; (![string match -nocase "*ghost*" $reason]) &amp;&amp; (![string match -nocase "*collision*" $reason]) &amp;&amp; (![string match -nocase "*svskill*" $reason])} {          set mask *!*@[lindex [split [getchanhost $nick $chan] @] 1]          pushmode $chan +b $mask        }      }    }    flushmode $chan  }}proc join:quit {nick uhost hand chan reason} {  global jointime  if {[channel get $chan joinquit] || [isbotnick $nick] || [botisop $chan] || ![isop $nick $chan] || ![isvoice $nick $chan] || ![validuser [nick2hand $nick]]} {    set mask *!*@[lindex [split [getchanhost $nick $chan] @] 1]    set join [getchanjoin $nick $chan]    set quit [unixtime]    set joinquit [expr $quit - $join]    if {$joinquit &lt;= $jointime} {      pushmode $chan +b $mask    }  }  flushmode $chan}proc join:part {nick uhost hand chan {msg ""}} {  global jointime  if {![channel get $chan joinpart] || [isbotnick $nick] || ![botisop $chan]} {return}    set mask *!*@[lindex [split [getchanhost $nick $chan] @] 1]    set join [getchanjoin $nick $chan]    set part [unixtime]    set joinpart [expr $part - $join]    if {$joinpart &lt;= $jointime} {      pushmode $chan +b $mask  }  flushmode $chan}putlog ".:partquit.tcl:.v, 1.5.1 - istok @ IRCSpeed"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Mon Apr 06, 2020 1:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
