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

	<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-05-03T04:59:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-05-03T04:59:02-04:00</updated>

		<published>2017-05-03T04:59:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106238#p106238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106238#p106238"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106238#p106238"><![CDATA[
I even install it in my new eggdrop and I created "h_message.dat" in my bot main dictionary and "messages.txt" I create manually it was not created auto<br><br>&lt;MuteServ&gt; [08:49:33] Tcl error [mess_join]: invalid command name " "<br>&lt;MuteServ&gt; [08:49:33] Tcl error [mess_do]: invalid command name " "<br><br>Please check <a href="http://picpaste.com/2017-04-29-ayKxULYG.png" class="postlink">http://picpaste.com/2017-04-29-ayKxULYG.png</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Wed May 03, 2017 4:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-05-02T15:57:27-04:00</updated>

		<published>2017-05-02T15:57:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106237#p106237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106237#p106237"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106237#p106237"><![CDATA[
<blockquote class="uncited"><div>Sorry but I don't have that much TCL knowledge. Please check other scripts if this one doesn't work.</div></blockquote>I had forgotten I had the original script (as I made some modifications). Here it is:<div class="codebox"><p>Code: </p><pre><code># Hadace messaging (uzeno-eng-win-beta v.1.5 WINDOWS ENGLISH BETA 2005.nov.08) #mfc.cs @ quakenet# NOTE!! # you must manualy create an empty file named: h_message.dat into your bot's main directory.# __        ___       ____  _   ___  __# \ \      / (_)_ __ / ___|| | | \ \/ /#  \ \ /\ / /| | '_ \\___ \| | | |\  /#   \ V  V / | | | | |___) | |_| |/  \#    \_/\_/  |_|_| |_|____/ \___//_/\_\  # my TCL scripts are avaiable here: # http://mazsola.linuxteam.hu/tcl/# WARNING !# in this version user rights are not correct!# it must be corrected!bind pub - "!msg" mess_dobind pub - "!messages" mess_listabind pubm - * mess_joinbind time - "20 * * * *" mess_sortbind pub - "!messaging" mess_infobind msg - "!msg" mess_do_inmsg#bind pub v|o "!msg" mess_do#bind pub o|o "!messages" mess_lista#bind pubm - * mess_join#bind time - "20 * * * *" mess_sort#bind pub v|o "!messaging" mess_info#bind msg v|o "!msg" mess_do_inmsgset message_db "h_message.dat"set message_whodid ""proc mess_info {nick host hand chan arg} {puthelp "PRIVMSG $chan :Hadace messaging (uzeno-eng-win-beta v.1.5 2005.dec.03)"puthelp "PRIVMSG $chan :Recepients list: !messages"puthelp "PRIVMSG $chan :Leaving message: !msg &lt;nick&gt; &lt;message&gt;"puthelp "PRIVMSG $chan :This info: !messaging"}proc mess_sort {a c d e f} {global message_dbset t_count [clock clicks -milliseconds]set filemuvelet [open $message_db r]set osszesuzenet ""while {![eof $filemuvelet]} {set konkretuzenet [gets $filemuvelet]if {[info exists konkretuzenet]&amp;&amp;$konkretuzenet!=""} {lappend osszesuzenet [split $konkretuzenet " "]}}close $filemuveletset osszesuzenet [lsort -index 1 $osszesuzenet]set filemuvelet [open $message_db w]foreach konkretuzenet $osszesuzenet {puts $filemuvelet [join $konkretuzenet " "]}close $filemuveletputlog "!message Done with sorting of data on the database ($message_db)-&gt;[expr double([clock clicks -milliseconds]-$t_count)/1000]s"}proc mess_do_inmsg {nick uhost hand rest} {global botnickputlog "mess_do_inmsg: $rest"set rest [split $rest " "]set cimzett [lindex $rest 0]if {$cimzett == ""} {puthelp "NOTICE $nick :The right format: /msg $botnick !msg &lt;nick&gt; &lt;message&gt;"} else {mess_write $nick $cimzett [lrange $rest 1 end] "MSG"puthelp "NOTICE $nick :Message for $cimzett accepted"}}proc mess_do {nick host hand chan args} {putlog "mess_do indul"set args [lindex $args 0]set args [split $args " "]set cimzett [lindex $args 0]if {$cimzett == ""} {puthelp "NOTICE $nick :The right format: !msg &lt;nick&gt; &lt;message&gt;"} else {if {[onchan $cimzett $chan]} {set mwhom $cimzettset mmoo [finduser "*![getchanhost $mwhom $chan]"]if {[validuser $mmoo]} {set cimzett $mmoo#putlog "uj uzenet $cimzett botuser szamara"} else {#putlog "uj uzenet $cimzett nick szamara"}}mess_write $nick $cimzett [lrange $args 1 end] $chanputhelp "NOTICE $nick :Message for $cimzett accepted"}}proc mess_write { nick cimzett uzenet csatorna } {global message_dbset cimzett [string tolower $cimzett]if {![file exists $message_db]} {file mkdir [lindex [split $message_db /] 0]set filemuvelet [open $message_db w+]puts $filemuvelet "Hadace !messaging database file created"} else {set filemuvelet [open $message_db a]}set systemTime [clock seconds]set ido [clock format $systemTime -format {%d.%m.%Y. %H.%M:}]puts $filemuvelet "$nick $cimzett $csatorna $ido [join $uzenet] "close $filemuvelet}#####################proc mess_join { nick uhost hand chan args } {#puthelp "NOTICE HeyBaby : $nick $uhost $hand $chan $args"if {$hand != "*"} {set explain [string tolower $hand]} else {set explain [string tolower $nick]}global message_db message_whodidif {![info exists message_whodid]} {set message_whodid ""}set nick [string tolower $nick]set filemuvelet [open $message_db r]set osszesuzenet ""while {![eof $filemuvelet]} {gets $filemuvelet konkretuzenetset konkretuzenet [split $konkretuzenet " "]if {[string equal -nocase [lindex $konkretuzenet 1] $explain]} {lappend osszesuzenet [join $konkretuzenet " "]}}close $filemuveletset count 0if {[llength $osszesuzenet]==1} {set uzente [split [lindex $osszesuzenet 0] " "]puthelp "PRIVMSG $nick :[lindex $uzente 0] says at [join [lrange [split [lindex $osszesuzenet 0] " "] 2 end]]"incr count} else {foreach konkretuzenet $osszesuzenet {incr countputhelp "PRIVMSG $nick :[lindex $konkretuzenet 0]\[${count}] says at [join [lrange [split $konkretuzenet " "] 2 end]]"} }if {$count == 0} { } else {lappend message_whodid [list $explain [string tolower $chan]]set explain [message_filterstr $explain];# Don't allow code to be executedset chan [message_filterstr $chan];# ensure []s are properly handled...mess_delete $explain}}###############################################xproc message_filterstr { data } {regsub -all -- \\\\ $data \\\\\\\\ dataregsub -all -- \\\[ $data \\\\\[ dataregsub -all -- \\\] $data \\\\\] dataregsub -all -- \\\} $data \\\\\} dataregsub -all -- \\\{ $data \\\\\{ dataregsub -all -- \\" $data \\\\" datareturn $data}proc mess_delete { cimzett {remnum "all"}} {global message_dbset cimzett [string tolower $cimzett]set filemuvelet [open $message_db r]set osszesuzenet ""set count 1if {$remnum == "all"} {while {![eof $filemuvelet]} {gets $filemuvelet konkretuzenetif {![string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett]} {lappend osszesuzenet $konkretuzenet}}} else {while {![eof $filemuvelet]} {gets $filemuvelet konkretuzenetif {![string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett] || ($count != $remnum &amp;&amp; $remnum != -2)} {if {[info exists konkretuzenet]&amp;&amp;$konkretuzenet!=""} {lappend osszesuzenet $konkretuzenet}if {[string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett]} {incr count}} else {incr count}}}close $filemuveletset filemuvelet [open $message_db w]foreach konkretuzenet $osszesuzenet {puts $filemuvelet $konkretuzenet}close $filemuvelet}proc mess_lista {nick host hand chan args} { global message_dbputserv "NOTICE $nick :\[ Recepients list \]"set lista ""set filemuvelet [open $message_db r]while {![eof $filemuvelet]} {lappend lista [lindex [split [gets $filemuvelet] " "] 1]}close $filemuveletforeach {a b c d e f g} [lsort -unique $lista] {putserv "NOTICE $nick :Recepients: $a $b $c $d $e $f $g"}putserv "NOTICE $nick :\[ end of the list \]" }putlog "Hadace messaging (uzeno.tcl v.1.5 ENG 2005.nov.08) #mfc.cs @ quakenet loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Tue May 02, 2017 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-05-02T12:52:40-04:00</updated>

		<published>2017-05-02T12:52:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106236#p106236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106236#p106236"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106236#p106236"><![CDATA[
Sorry but I don't have that much TCL knowledge. Please check other scripts if this one doesn't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Tue May 02, 2017 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-05-02T08:07:06-04:00</updated>

		<published>2017-05-02T08:07:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106231#p106231</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106231#p106231"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106231#p106231"><![CDATA[
Have you check screen short? Did you figure it out?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Tue May 02, 2017 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-29T09:51:19-04:00</updated>

		<published>2017-04-29T09:51:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106221#p106221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106221#p106221"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106221#p106221"><![CDATA[
There is already .txt file in my eggdrop messages.txt<br><br>Please check <a href="http://picpaste.com/2017-04-29-ayKxULYG.png" class="postlink">http://picpaste.com/2017-04-29-ayKxULYG.png</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Sat Apr 29, 2017 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gembels]]></name></author>
		<updated>2017-04-29T09:26:46-04:00</updated>

		<published>2017-04-29T09:26:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106220#p106220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106220#p106220"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106220#p106220"><![CDATA[
touch messages.txt<br><br>or put manually file messages.txt where you eggdrop is.. ignore about your version.. its about your messages.txt and structure (location) of that messages.txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12028">gembels</a> — Sat Apr 29, 2017 9:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-29T05:38:08-04:00</updated>

		<published>2017-04-29T05:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106219#p106219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106219#p106219"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106219#p106219"><![CDATA[
My eggdrop is is 1.8 new version. I have created the folder "message_db" in my eggdrop.  Do we have to fix this ?<br><br>set message_db "messages.txt" <br>set message_whodid ""<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Sat Apr 29, 2017 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-04-28T20:24:43-04:00</updated>

		<published>2017-04-28T20:24:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106217#p106217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106217#p106217"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106217#p106217"><![CDATA[
<blockquote class="uncited"><div>I Serious don't understand this ERROR... It's Loaded already and I have create a empty folder "h_message.dat" in my bot main directory. What channel and Network your bot is?  I create this folder in /home/eggy/eggdrop.<br><br> <strong class="text-strong">Tcl error [mess_alert]: invalid command name " "<br> Tcl error [mess_join]: invalid command name " "<br> Tcl error [msg]: invalid command name " "</strong><br><br>I am pasting code again. please check the code.</div></blockquote>Maybe there's some TCL issues with your eggdrop (or maybe it's too old). Actually, the file where the messages are stored in is defined by message_db and if the file doesn't exist, the script should be creating it.<div class="codebox"><p>Code: </p><pre><code>set message_db "messages.txt"set message_whodid ""if {![file exists $message_db]} {    fconfigure [set File [open $message_db w]] -encoding binary    close $File}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Fri Apr 28, 2017 8:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-28T06:01:27-04:00</updated>

		<published>2017-04-28T06:01:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106215#p106215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106215#p106215"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106215#p106215"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Hadace messaging (uzeno-eng-win-beta v.1.5 WINDOWS ENGLISH BETA 2005.nov.08) #mfc.cs @ quakenet # NOTE!! # you must manualy create an empty file named: h_message.dat into your bot's main directory. # __        ___       ____  _   ___  __ # \ \      / (_)_ __ / ___|| | | \ \/ / #  \ \ /\ / /| | '_ \\___ \| | | |\  / #   \ V  V / | | | | |___) | |_| |/  \ #    \_/\_/  |_|_| |_|____/ \___//_/\_\  # my TCL scripts are avaiable here: # http://mazsola.linuxteam.hu/tcl/ # WARNING ! # in this version user rights are not correct! # it must be corrected! foreach bind [binds msg] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} foreach bind [binds messages] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} foreach bind [binds mess_alert] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} foreach bind [binds messalert] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} foreach bind [binds mess_join] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} bind pub - "!msg" msg bind pub - "!messages" messages bind join - * mess_alert bind rejn - * mess_alert bind nick - * messalert bind pubm - * mess_join #bind pub v|o "!msg" msg #bind pub o|o "!messages" messages #bind pubm - * mess_join #bind time - "0 * * * *" mess_sort #bind pub v|o "!messaging" mess_info #bind msg v|o "!msg" mess_do_inmsg foreach bind [binds pubmsg] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} # bind pubm - "% &lt;*&gt; !msg" pubmsg # bind pubm - "% &lt;*&gt; !msg *" pubmsg proc pubmsg {nick uhost hand chan rest} {    set myrest [split $rest];    set newnick [string range [lindex $myrest 0] 1 end-1];    set newrest [lrange $myrest 2 end];    msg $newnick $uhost $hand $chan $newrest    return 0 } foreach bind [binds pubmessages] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} # bind pubm - "% &lt;*&gt; !messages" pubmessages # bind pubm - "% &lt;*&gt; !messages *" pubmessages proc pubmessages {nick uhost hand chan rest} {    set myrest [split $rest];    set newnick [string range [lindex $myrest 0] 1 end-1];    set newrest [lrange $myrest 2 end];    messages $newnick $uhost $hand $chan $newrest    return 0 } foreach bind [binds pubmess_join] {lassign $bind type flags mask num proc; unbind $type $flags $mask $proc} # bind pubm - "% &lt;*&gt; *" pubmess_join proc pubmess_join {nick uhost hand chan rest} {    set myrest [split $rest];    set newnick [string range [lindex $myrest 0] 1 end-1];    set newrest [lrange $myrest 1 end];    mess_join $newnick $uhost $hand $chan $newrest    return 0 } set message_db "messages.txt" set message_whodid "" if {![file exists $message_db]} {     fconfigure [set File [open $message_db w]] -encoding binary     close $File } proc mess_sort {type} {    global message_db    set t_count [clock clicks -milliseconds]    fconfigure [set filemuvelet [open $message_db r]] -encoding binary    set osszesuzenet ""    while {![eof $filemuvelet]} {       set konkretuzenet [gets $filemuvelet]       if {[info exists konkretuzenet]&amp;&amp;$konkretuzenet!=""} {          lappend osszesuzenet [split $konkretuzenet " "]       }    }    close $filemuvelet    set osszesuzenet [lsort -index 1 $osszesuzenet]    fconfigure [set filemuvelet [open $message_db w]] -encoding binary    foreach konkretuzenet $osszesuzenet {       puts $filemuvelet [join $konkretuzenet " "]    }    close $filemuvelet    putlog "!message Done with sorting of data on the database ($message_db)-&gt;[expr double([clock clicks -milliseconds]-$t_count)/1000]s" } proc msg {nick host hand chan args} {    putlog "mess_do indul"    set args [lindex $args 0]    set args [split $args " "]    set cimzett [lindex $args 0]    if {($cimzett == "") || ($cimzett == "help")  || ($cimzett == "ayuda")} {       puthelp "PRIVMSG $chan :Usage: !msg &lt;nick&gt; &lt;message&gt; - Leave &lt;message&gt; to &lt;nick&gt;"    } else {       if {[onchan $cimzett $chan]} {          set mwhom $cimzett          set mmoo [finduser "*![getchanhost $mwhom $chan]"]          if {[validuser $mmoo]} {             set cimzett $mmoo             #putlog "uj uzenet $cimzett botuser szamara"          } else {             #putlog "uj uzenet $cimzett nick szamara"          }       }       mess_write $nick $cimzett [lrange $args 1 end] $chan       puthelp "PRIVMSG $chan :Message to $cimzett accepted"    } return 1 } proc mess_write { nick cimzett uzenet csatorna } {    global message_db    set cimzett [string tolower $cimzett]    if {![file exists $message_db]} {       file mkdir [lindex [split $message_db /] 0]       fconfigure [set filemuvelet [open $message_db w+]] -encoding binary       puts $filemuvelet "Hadace !messaging database file created"    } else {       fconfigure [set filemuvelet [open $message_db a]] -encoding binary    }    set systemTime [clock seconds]    set ido [clock format $systemTime -format {%d/%m/%Y %H:%M:}]    puts $filemuvelet "$nick $cimzett $ido [join $uzenet] "    close $filemuvelet    mess_sort 1 } proc messalert { nick uhost hand chan args } {    mess_alert $args $uhost $hand $chan $nick } proc mess_alert { nick uhost hand chan args } {    #puthelp "NOTICE HeyBaby : $nick $uhost $hand $chan $args"    if {$hand != "*"} {       set explain [string tolower $hand]    } else {       set explain [string tolower $nick]    }    global message_db message_whodid botnick    if {![info exists message_whodid]} {       set message_whodid ""    }    if {($nick == $botnick)} { return }    set nick [string tolower $nick]    fconfigure [set filemuvelet [open $message_db r]] -encoding binary    set osszesuzenet ""    set count 0    while {![eof $filemuvelet]} {       gets $filemuvelet konkretuzenet       set konkretuzenet [split $konkretuzenet " "]       if {[string equal -nocase [lindex $konkretuzenet 1] $explain]} {       incr count       }    }    close $filemuvelet    if {$count &gt; 0} {    puthelp "PRIVMSG $chan :$nick: You have $count message(s) pending. Say anything to receive it"    } return 0 } ##################### proc mess_join { nick uhost hand chan args } {    #puthelp "NOTICE HeyBaby : $nick $uhost $hand $chan $args"    if {$hand != "*"} {       set explain [string tolower $hand]    } else {       set explain [string tolower $nick]    }    global message_db message_whodid botnick    if {![info exists message_whodid]} {       set message_whodid ""    }    if {($nick == $botnick)} { return }    if {[string match -nocase "&lt;*&gt;*" $args]} { return }    set nick [string tolower $nick]    fconfigure [set filemuvelet [open $message_db r]] -encoding binary    set osszesuzenet ""    while {![eof $filemuvelet]} {       gets $filemuvelet konkretuzenet       set konkretuzenet [split $konkretuzenet " "]       if {[string equal -nocase [lindex $konkretuzenet 1] $explain]} {          lappend osszesuzenet [join $konkretuzenet " "]       }    }    close $filemuvelet    set count 0    if {[llength $osszesuzenet]==1} {       set uzente [split [lindex $osszesuzenet 0] " "]       puthelp "PRIVMSG $chan :$nick: [lindex $uzente 0]: [join [lrange [split [lindex $osszesuzenet 0] " "] 2 end]]"       incr count    } else {       foreach konkretuzenet $osszesuzenet {          incr count          puthelp "PRIVMSG $chan :$nick: [lindex $konkretuzenet 0]\[${count}]: [join [lrange [split $konkretuzenet " "] 2 end]]"       }    }    if {$count == 0} {    } else {       lappend message_whodid [list $explain [string tolower $chan]]       set explain [message_filterstr $explain]   ;# Don't allow code to be executed       set chan [message_filterstr $chan]   ;# ensure []s are properly handled...       mess_delete $explain    } return 0 } ###############################################x proc message_filterstr { data } {    regsub -all -- \\\\ $data \\\\\\\\ data    regsub -all -- \\\[ $data \\\\\[ data       regsub -all -- \\\] $data \\\\\] data    regsub -all -- \\\} $data \\\\\} data    regsub -all -- \\\{ $data \\\\\{ data    regsub -all -- \\\" $data \\\\\" data    return $data } proc mess_delete { cimzett {remnum "all"}} {    global message_db    set cimzett [string tolower $cimzett]    fconfigure [set filemuvelet [open $message_db r]] -encoding binary    set osszesuzenet ""    set count 1    if {$remnum == "all"} {       while {![eof $filemuvelet]} {          gets $filemuvelet konkretuzenet          if {![string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett]} {             lappend osszesuzenet $konkretuzenet          }       }    } else {       while {![eof $filemuvelet]} {          gets $filemuvelet konkretuzenet          if {![string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett] || ($count != $remnum &amp;&amp; $remnum != -2)} {             if {[info exists konkretuzenet]&amp;&amp;$konkretuzenet!=""} {                lappend osszesuzenet $konkretuzenet             }             if {[string equal -nocase [lindex [split $konkretuzenet] 1] $cimzett]} {             incr count             }          } else {             incr count          }       }    }    close $filemuvelet    fconfigure [set filemuvelet [open $message_db w]] -encoding binary    foreach konkretuzenet $osszesuzenet {       puts $filemuvelet $konkretuzenet    }    close $filemuvelet    mess_sort 1 } proc messages {nick host hand chan args} {    global message_db    puthelp "PRIVMSG $chan :\[ List of message recipients \]"    set lista ""    fconfigure [set filemuvelet [open $message_db r]] -encoding binary    while {![eof $filemuvelet]} {       lappend lista [lindex [split [gets $filemuvelet] " "] 1]    }    close $filemuvelet    foreach {a b c d e f g} [lsort -unique $lista] {       puthelp "PRIVMSG $chan :Recipients: $a $b $c $d $e $f $g"    }    puthelp "PRIVMSG $chan :\[ End of list \]" return 1 } putlog "Hadace messaging (uzeno.tcl v.1.5 ENG 2005.nov.08) #mfc.cs @ quakenet loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Fri Apr 28, 2017 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-28T06:00:33-04:00</updated>

		<published>2017-04-28T06:00:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106214#p106214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106214#p106214"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106214#p106214"><![CDATA[
<blockquote class="uncited"><div>I double tested the script I gave you on my channel and it worked flawlessly:<div class="codebox"><p>Code: </p><pre><code>[00:40] &lt;lalalla&gt; .msg kdoe kofr[00:40] &lt;@BOT&gt; Message to kdoe accepted[00:40] == lalalla has changed nick to kdoe[00:40] &lt;@BOT&gt; kdoe: You have 1 message(s) pending. Say anything to receive it[00:40] &lt;kdoe&gt; ddd[00:40] &lt;@BOT kdoe: lalalla: 28/04/2017 00:40: kofr</code></pre></div></div></blockquote>I Serious don't understand this ERROR... It's Loaded already and I have create a empty folder "h_message.dat" in my bot main directory. What channel and Network your bot is?  I create this folder in /home/eggy/eggdrop.<br><br> <strong class="text-strong">Tcl error [mess_alert]: invalid command name " "<br> Tcl error [mess_join]: invalid command name " "<br> Tcl error [msg]: invalid command name " "</strong><br><br>I am pasting code again. please check the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Fri Apr 28, 2017 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-04-27T23:42:30-04:00</updated>

		<published>2017-04-27T23:42:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106212#p106212</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106212#p106212"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106212#p106212"><![CDATA[
I double tested the script I gave you on my channel and it worked flawlessly:<div class="codebox"><p>Code: </p><pre><code>[00:40] &lt;lalalla&gt; .msg kdoe kofr[00:40] &lt;@BOT&gt; Message to kdoe accepted[00:40] == lalalla has changed nick to kdoe[00:40] &lt;@BOT&gt; kdoe: You have 1 message(s) pending. Say anything to receive it[00:40] &lt;kdoe&gt; ddd[00:40] &lt;@BOT kdoe: lalalla: 28/04/2017 00:40: kofr</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Apr 27, 2017 11:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-27T14:01:44-04:00</updated>

		<published>2017-04-27T14:01:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106209#p106209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106209#p106209"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106209#p106209"><![CDATA[
I try Edited one you error again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> when I type !msg nick messagehere<blockquote class="uncited"><div><strong class="text-strong">&lt;Hobbit_&gt; [17:59:28] Tcl error [mess_join]: invalid command name " "<br>&lt;Hobbit_&gt; [17:59:28] Tcl error [msg]: invalid command name " "</strong></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Thu Apr 27, 2017 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-04-27T13:31:29-04:00</updated>

		<published>2017-04-27T13:31:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106208#p106208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106208#p106208"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106208#p106208"><![CDATA[
Hi Fahad, I had forgotten to erase some modifications I did to the script. I have uploaded it again so you can try again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Thu Apr 27, 2017 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fahad]]></name></author>
		<updated>2017-04-27T08:14:17-04:00</updated>

		<published>2017-04-27T08:14:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106205#p106205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106205#p106205"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106205#p106205"><![CDATA[
I get this error always when I run <blockquote class="uncited"><div>&lt;Hobbit_&gt; [13:22:58] Tcl error [mess_alert]: invalid command name " "<br>&lt;Hobbit_&gt; [13:23:58] Tcl error [mess_alert]: invalid command name " "<br>&lt;Hobbit_&gt; [13:24:12] Tcl error [mess_join]: invalid command name " "<br>&lt;Hobbit_&gt; [13:24:12] Tcl error [msg]: can't read "relaybot": no such variable</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12648">Fahad</a> — Thu Apr 27, 2017 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CP1832]]></name></author>
		<updated>2017-04-26T16:56:03-04:00</updated>

		<published>2017-04-26T16:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106204#p106204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106204#p106204"/>
		<title type="html"><![CDATA[Script [Message]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106204#p106204"><![CDATA[
It reminds the user that it has a pending message as soon as he/she logs in and gives it to him as soon as he says something on the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12450">CP1832</a> — Wed Apr 26, 2017 4:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
