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

	<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>2005-05-02T12:26:16-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ac1d]]></name></author>
		<updated>2005-05-02T11:09:11-04:00</updated>

		<published>2005-05-02T11:09:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48888#p48888</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48888#p48888"/>
		<title type="html"><![CDATA[Script edit request.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48888#p48888"><![CDATA[
Thanks a lot De Kus.<br>it's working as what i wanted!!<br>you were very helpfull btw don't need to make .user file to lower case?<br>i just changed .chan files to lower case as you pointed me.<br>but just curious if .user files need to be changed to lower case<br>once again THANK YOU<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6180">ac1d</a> — Mon May 02, 2005 11:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-02T12:26:16-04:00</updated>

		<published>2005-05-02T08:58:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48879#p48879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48879#p48879"/>
		<title type="html"><![CDATA[Script edit request.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48879#p48879"><![CDATA[
try adding this line:<br>set term [string tolower $term]<br><br>after both 'regsub -all \[^0-9a-zA-Z_\x80-\xff\] $term "_" term' lines. this should archieve your desired effect.<br>remember to make all existing data files to lowercase!<br><br>PS: sorry, I meant the files in the odic data dir <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon May 02, 2005 8:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ac1d]]></name></author>
		<updated>2005-05-02T07:03:36-04:00</updated>

		<published>2005-05-02T07:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48870#p48870</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48870#p48870"/>
		<title type="html"><![CDATA[Script edit request.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48870#p48870"><![CDATA[
hello. i'm using infobot style script which is made for korean language.<br>if i could get in touch to the author i would request to him.<br>but this script is a bit old and can't get in touch with author.<br>when someone add new topic. it creates topic named text file in egghome/odic.<br>but the problem is this script checks cases.<br>i want to edit it to get stored description whatever it's upper or lower case.<br>(author commented that this script can be edited w/o his approval)<br><br>please help! and sorry for some languages in code that you can't understand.<br><br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * odic:handlerset odic_whatis_list {"*뭐야*" "*모야*" "*머야*" "*뭘까*" "*몰까*" "*멀까*" "*뭐지*" "*모지*" "*머지*" "*뭐냐*" "*모냐*" "*머냐*" "*뭡니까*" "*몹니까*" "*멉니까*" "*뭐죠*" "*모죠*" "*머죠*" "*뭐에요*" "*모에요*" "*머에요*" "*뭐니*" "*모니*" "*머니*" "*뭐지요*" "*모지요*" "*뭐지요*" "*뭔데*" "*몬데*" "*먼데*" "*뭔대*" "*몬대*" "*먼대*"}set odic_add "!추가 *"set odic_del "!삭제 *"set odic_help_list {"*도와*" "*도움*" "*help*"}set odic_max_term 20set odic_max_comment 200set odic_botname $nickset odic_data_dir "./odic"proc odic:handler {nick uhost handle chan txt} {    global odic_whatis_list    global odic_help_list    global odic_add    global odic_del    global odic_botname    if {[string match $odic_botname $nick]} {        return 0    }    if {[string match $odic_add $txt]} {        return [odic:add $nick $uhost $handle $chan $txt]    } elseif {[string match $odic_del $txt]} {        return [odic:del $nick $uhost $handle $chan $txt]    }    foreach whatis_item $odic_whatis_list {        if {[string match $whatis_item $txt]} {            return [odic:whatis $nick $uhost $handle $chan $txt $whatis_item]        }    }    foreach help_item $odic_help_list {        if {[string match $help_item $txt]} {            return [odic:help $nick $uhost $handle $chan $txt]        }    }    return 0}proc odic:help {nick uhost handle chan txt} {    global odic_botname    puthelp "PRIVMSG $chan :$odic_botname 도움말"    puthelp "PRIVMSG $chan :!추가 (단어) (뜻)"    puthelp "PRIVMSG $chan :!삭제 (단어)"    puthelp "PRIVMSG $chan :(단어) 뭐야?"    puthelp "PRIVMSG $chan :만든이"    puthelp "PRIVMSG $chan :Taeho Oh ( ohhara@postech.edu )  http://ohhara.sarang.net"    return 1}proc odic:whatis {nick uhost handle chan txt whatis_item} {    global odic_max_term    global odic_data_dir    set get_term 0    regsub -all \\\* $whatis_item "" new_whatis_item    if {[regexp (\[^\ \]+)$new_whatis_item $txt dummy term]} {        set get_term 1    }    if {[regexp (\[^\ \]+)\ $new_whatis_item $txt dummy term]} {        set get_term 1    }    if {[string length $term] &gt; $odic_max_term} {        set get_term 0    }    if {$get_term == 0} {        return 0    }    regsub -all \[^0-9a-zA-Z_\x80-\xff\] $term "_" term    if [catch {open $odic_data_dir/$term r} fd] {        puthelp "PRIVMSG $chan :난 $term 뭔지 잘 몰라. 나한테 묻지 마."        return 0    }    puthelp "PRIVMSG $chan :$term? 나는 이렇게 알고 있어."    set index_num 0    while {![eof $fd]} {        set read_line [gets $fd]        if {[string length $read_line] &gt; 0} {            incr index_num            puthelp "PRIVMSG $chan :$index_num. $read_line"        }    }    close $fd    return 1}proc odic:add {nick uhost handle chan txt} {    global odic_max_term    global odic_max_comment    global odic_data_dir    set term [lindex $txt 1]    set comment [lrange $txt 2 end]    if {[string length $term] &gt; $odic_max_term} {        puthelp "PRIVMSG $chan :$term - 너무 깁니다."        return 0    }    if {[string length $comment] &gt; $odic_max_comment} {        puthelp "PRIVMSG $chan :$comment - 너무 깁니다."        return 0    }    regsub -all \[^0-9a-zA-Z_\x80-\xff\] $term "_" term    set fd [open $odic_data_dir/$term {WRONLY APPEND CREAT}]    puts $fd "$comment by $nick"    close $fd    puthelp "PRIVMSG $chan :$term - $comment by $nick - 추가되었습니다."    return 1}proc odic:del {nick uhost handle chan txt} {    puthelp "PRIVMSG $chan :삭제 기능은 제공하지 않습니다. 귀찮아서 넣지 않았습니다. -_-;;;;"    return 0}putlog "odic start"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6180">ac1d</a> — Mon May 02, 2005 7:03 am</p><hr />
]]></content>
	</entry>
	</feed>
