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

	<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>2009-03-02T06:13:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2009-03-02T06:13:09-04:00</updated>

		<published>2009-03-02T06:13:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87657#p87657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87657#p87657"/>
		<title type="html"><![CDATA[Join message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87657#p87657"><![CDATA[
no one ?  <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=8230">Fire-Fox</a> — Mon Mar 02, 2009 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2009-02-12T15:41:57-04:00</updated>

		<published>2009-02-12T15:41:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87380#p87380</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87380#p87380"/>
		<title type="html"><![CDATA[Join message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87380#p87380"><![CDATA[
Hey all<br><div class="codebox"><p>Code: </p><pre><code>package require mysqltclsetudef flag joinmsgbind join - * join:testareabind rejn - * join:testarea##################### Mysql path ###################### SQL infoset sql(host) "xxxxxxxxxx"set sql(user) "xxxxxxxxxx"set sql(pass) "xxxxxxxxxx"set sql(db) "xxxxxxxxxx"set sql(port) "xxxx"##################### Mysql path #####################if {![info exists db_handle] } {set db_handle [mysqlconnect -host $sql(host) -user $sql(user) -password $sql(pass) -db $sql(db) -port $sql(port)]}############################################## Greeting MSG When User Join channel ##############################################proc bt.join.class { chan nick class} {if {[channel get $chan joinmsg]} {switch $class {   ### The number is the number of the class on the site   ### "return 0" means no msg for that class   "default"   {set class "Not Found" }  } }}#################### Join Proc ####################proc join:testarea {nick host hand chan} {global botnick db_handle  if {$nick != $botnick} {        if {[mysqlping $db_handle] != 1} {           putserv "PRIVMSG $chan : The connection to the mysql server has been lost."             return 0       }              set sqlnick "SELECT userid FROM joinmsgnicks WHERE nick='[mysqlescape $nick]'"       set resultnick [mysqlquery $db_handle $sqlnick]                    set nicki 0       while {[set record [mysqlnext $resultnick]] != ""} {         set userid [lindex $record 0]         incr nicki       }                    if { $nicki == 0 } { return 0 }                    if { $userid == "" } { return 0 }                    set sql "SELECT username, class FROM joinmsgircuser WHERE id='[mysqlescape $userid]'"              set result [mysqlquery $db_handle $sql]                    set i 0       while {[set record [mysqlnext $result]] != ""} {                            set username [lindex $record 0];         set class [lindex $record 1];       }              set sql "SELECT username, class FROM joinmsgircuser WHERE id='[mysqlescape $userid]'"       set result [mysqlquery $db_handle $sql]                    set i 0       while {[set record [mysqlnext $result]] != ""} {                            set username [lindex $record 0];         set class [lindex $record 1];       }       mysqlendquery $result              bt.join.class $chan $nick $class    }  }  putlog "Joinmsg"</code></pre></div>Could someone make this :<br><br>I want to add the user to the database, without going into the database to add the user all the time...<br><br>so something like: <blockquote class="uncited"><div>!addmsg NickName Text</div></blockquote>So it outputs : <blockquote class="uncited"><div>[@LillePil] Welcome To ::: NickName::: Text</div></blockquote>and recheck if the script if it could be made simply. the script is NOT used on a site more. like it's made <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Thu Feb 12, 2009 3:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
