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

	<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>2010-08-25T20:04:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-08-25T20:04:10-04:00</updated>

		<published>2010-08-25T20:04:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94108#p94108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94108#p94108"/>
		<title type="html"><![CDATA[speechless]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94108#p94108"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Multi-Bind Messaging (the easy way to do this)# AKA, PutServ-O-Matic v1.1# by speechles (w/help from egghelp! yay!)# Construct your triggers|channel|message# here using the format below:# "TRIGGER|#CHANNEL|METHOD AND MESSAGE"# add as little, or as many as you want but you# MUST use the format described above!# You also have a few variables to use# %b - will be replaced with $::botnick (bots current nickname)# %n - will be replaced with $nick (person triggering)# %c - will be replaced with $chan (channel triggered in)# %u - will be replaced with $uhost (person triggering unique host) # %h - will be replaced with $hand (person triggering handle)# %t - will be replaced with $trigger (aka 0 lindex)# %i - will be replaced with user $input (entire thing aka 1-end lrange)# %i1 - will be replaced with user $input (just the first word aka 1 lindex)# %i2 - will be replaced with user $input (second to last words aka 2-end lrange)# below are merely some examples.variable mycommands {  "*credit card*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt; %t %i"  "*creditcard*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt; %t %i"}# set the flagmask here that you will use to ignore users.# use ".chattr hand +J" to add users, you can change this flag below.# be careful which flags you use, they are matched against channel.variable mycommand_flag "J|J"# Script begins - change nothing below herebind pubm -|- "*" mycommands_procproc mycommands_proc {nick uhand hand chan input} {   if {![matchattr $hand $::mycommand_flag $chan]} {      foreach item $::mycommands {         set trig [lindex [split $item \|] 0]         regsub -all -nocase {%b} $trig $::botnick trig         regsub -all -nocase {%n} $trig $nick trig         regsub -all -nocase {%c} $trig $chan trig         regsub -all -nocase {%u} $trig $uhand trig         regsub -all -nocase {%h} $trig $hand trig         regsub -all -nocase {%t} $trig [lindex [split $input] 0] trig         regsub -all -nocase {%i1} $trig [lindex [split $input] 1] trig         regsub -all -nocase {%i2} $trig [join [lrange [split $input] 2 end]]] trig         regsub -all -nocase {%i} $trig [join [lrange [split $input] 1 end]]] trig         if {[string match -nocase $trig $input]} {            if {[string match -nocase [lindex [split $item \|] 1] $chan]} {               set message [join [lrange [split $item \|] 2 end]]               regsub -all -nocase {%b} $message $::botnick message               regsub -all -nocase {%n} $message $nick message               regsub -all -nocase {%c} $message $chan message               regsub -all -nocase {%u} $message $uhand message               regsub -all -nocase {%h} $message $hand message               regsub -all -nocase {%t} $trig [lindex [split $input] 0] message               regsub -all -nocase {%i1} $message [lindex [split $input] 1] message               regsub -all -nocase {%i2} $message [join [lrange [split $input] 2 end]]] message               regsub -all -nocase {%i} $message [join [lrange [split $input] 1 end]]] message               putserv "$message"            }         }      }   }}putlog "Multi-bind messaging with action missles script loaded."</code></pre></div>Hi speecless the above script no longer seems to work with the new eggdrop if possible is their any way to get it to work<br><br>Many thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Wed Aug 25, 2010 8:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-29T10:38:36-04:00</updated>

		<published>2009-12-29T10:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91478#p91478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91478#p91478"/>
		<title type="html"><![CDATA[One for speechless]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91478#p91478"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>_-2:36pm-_ &lt;ChanGuardian&gt; [14:36] Tcl error [mycommands_proc]: can't read "message": no such variable_-2:36pm-_ &lt;ChanGuardian&gt; [14:36] Tcl error [mycommands_proc]: can't read "message": no such variable_-2:36pm-_ &lt;ChanGuardian&gt; [14:36] Tcl error [mycommands_proc]: can't read "message": no such variable</code></pre></div>Get this error message on bots partyline im assuming its this line <br><div class="codebox"><p>Code: </p><pre><code>regsub -all -nocase {%t} $message [lindex [split $input] 0] message</code></pre></div> <br><br>should i change $message to $trig<br><br>Edited changed the above now works but still only outputs second to last word its set to show whole line set +J on myself and its still showing what ive said<br><br>Changed <div class="codebox"><p>Code: </p><pre><code>variable mycommand_flag "*|J"</code></pre></div>to <div class="codebox"><p>Code: </p><pre><code>variable mycommand_flag "J|J"</code></pre></div>Now working just the issue with showing whole sentence <br><br>Further edit sorted it just needed both %t %i adding and seperated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Tue Dec 29, 2009 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-29T17:31:58-04:00</updated>

		<published>2009-12-29T07:33:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91475#p91475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91475#p91475"/>
		<title type="html"><![CDATA[Re: One for speechless]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91475#p91475"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Multi-Bind Messaging (the easy way to do this)# AKA, PutServ-O-Matic v1.1# by speechles (w/help from egghelp! yay!)# Construct your triggers|channel|message# here using the format below:# "TRIGGER|#CHANNEL|METHOD AND MESSAGE"# add as little, or as many as you want but you# MUST use the format described above!# You also have a few variables to use# %b - will be replaced with $::botnick (bots current nickname)# %n - will be replaced with $nick (person triggering)# %c - will be replaced with $chan (channel triggered in)# %u - will be replaced with $uhost (person triggering unique host)# %h - will be replaced with $hand (person triggering handle)# %t - will be replaced with $trigger (aka 0 lindex)# %i - will be replaced with user $input (entire thing aka 1-end lrange)# %i1 - will be replaced with user $input (just the first word aka 1 lindex)# %i2 - will be replaced with user $input (second to last words aka 2-end lrange)# below are merely some examples.variable mycommands {  "*credit card*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt; %t%i"  "*creditcard*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt; %t%i"}# set the flagmask here that you will use to ignore users.# use ".chattr hand +J" to add users, you can change this flag below.# be careful which flags you use, they are matched against channel.variable mycommand_flag "*|J"# Script begins - change nothing below herebind pubm -|- "*" mycommands_procproc mycommands_proc {nick uhand hand chan input} {   if {![matchattr $hand $::mycommand_flag $chan]} {      foreach item $::mycommands {         set trig [lindex [split $item \|] 0]         regsub -all -nocase {%b} $trig $::botnick trig         regsub -all -nocase {%n} $trig $nick trig         regsub -all -nocase {%c} $trig $chan trig         regsub -all -nocase {%u} $trig $uhand trig         regsub -all -nocase {%h} $trig $hand trig         regsub -all -nocase {%t} $trig [lindex [split $input] 0] trig         regsub -all -nocase {%i1} $trig [lindex [split $input] 1] trig         regsub -all -nocase {%i2} $trig [join [lrange [split $input] 2 end]]] trig         regsub -all -nocase {%i} $trig [join [lrange [split $input] 1 end]]] trig         if {[string match -nocase $trig $input]} {            if {[string match -nocase [lindex [split $item \|] 1] $chan]} {               set message [join [lrange [split $item \|] 2 end]]               regsub -all -nocase {%b} $message $::botnick message               regsub -all -nocase {%n} $message $nick message               regsub -all -nocase {%c} $message $chan message               regsub -all -nocase {%u} $message $uhand message               regsub -all -nocase {%h} $message $hand message               regsub -all -nocase {%t} $message [lindex [split $input] 0] message               regsub -all -nocase {%i1} $message [lindex [split $input] 1] message               regsub -all -nocase {%i2} $message [join [lrange [split $input] 2 end]]] message               regsub -all -nocase {%i} $message [join [lrange [split $input] 1 end]]] message               putserv "$message"            }         }      }   }}putlog "Multi-bind messaging with action missles script loaded."</code></pre></div>Try this one out <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Dec 29, 2009 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-28T21:01:19-04:00</updated>

		<published>2009-12-28T21:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91471#p91471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91471#p91471"/>
		<title type="html"><![CDATA[One for speechless]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91471#p91471"><![CDATA[
Is it possible to get this script to ignore users that i add I want it to ignore some admin nicknames and some other eggdrops that run games on my server also how can I get it to show the whole sentence<br><div class="codebox"><p>Code: </p><pre><code># Multi-Bind Messaging (the easy way to do this)# AKA, PutServ-O-Matic v1.0# by speechles (w/help from egghelp! yay!)# Construct your triggers|channel|message# here using the format below:# "TRIGGER|#CHANNEL|METHOD AND MESSAGE"# add as little, or as many as you want but you# MUST use the format described above!# You also have a few variables to use# %b - will be replaced with $::botnick (bots current nickname)# %n - will be replaced with $nick (person triggering)# %c - will be replaced with $chan (channel triggered in)# %u - will be replaced with $uhost (person triggering unique host)# %h - will be replaced with $hand (person triggering handle)# %i - will be replaced with user $input (entire thing)# %i1 - will be replaced with user $input (just the first word)# %i2 - will be replaced with user $input (second to last words)# below are merely some examples.variable mycommands {  "*credit card*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt;%i"  "*creditcard*|*|notice #CWStats :CWStats-Spam-Report: &lt;%n %c&gt;%i"  }# Script begins - change nothing below herebind pubm -|- "*" mycommands_procproc mycommands_proc {nick uhand hand chan input} {   foreach item $::mycommands {      set trig [lindex [split $item \|] 0]      regsub -all -nocase {%b} $trig $::botnick trig      regsub -all -nocase {%n} $trig $nick trig      regsub -all -nocase {%c} $trig $chan trig      regsub -all -nocase {%u} $trig $uhand trig      regsub -all -nocase {%h} $trig $hand trig      regsub -all -nocase {%i1} $trig [lindex [split $input] 1] trig      regsub -all -nocase {%i2} $trig [join [lrange [split $input] 2 end]]] trig      regsub -all -nocase {%i} $trig [join [lrange [split $input] 1 end]]] trig      if {[string match -nocase $trig $input]} {         if {[string match -nocase [lindex [split $item \|] 1] $chan]} {            set message [join [lrange [split $item \|] 2 end]]            regsub -all -nocase {%b} $message $::botnick message            regsub -all -nocase {%n} $message $nick message            regsub -all -nocase {%c} $message $chan message            regsub -all -nocase {%u} $message $uhand message            regsub -all -nocase {%h} $message $hand message            regsub -all -nocase {%i1} $message [lindex [split $input] 1] message            regsub -all -nocase {%i2} $message [join [lrange [split $input] 2 end]]] message            regsub -all -nocase {%i} $message [join [lrange [split $input] 1 end]]] message            putserv "$message"         }      }   }}putlog "Multi-bind messaging with action missles script loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Mon Dec 28, 2009 9:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
