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

	<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>2008-06-27T07:21:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2008-06-27T07:21:58-04:00</updated>

		<published>2008-06-27T07:21:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83745#p83745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83745#p83745"/>
		<title type="html"><![CDATA[regnick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83745#p83745"><![CDATA[
Hey all<br><br>how can i get the below script to do the follwing<br><br>When a user types !regnick is sendt a code, the code is then used on a external php site where the user insert the pass the bot gav a person. and then when they join the chan they vil get auto +v before they can talk in the chan <br><div class="codebox"><p>Code: </p><pre><code>bind pub "-|-" !regnick reg:userproc reg:user {nick uhost hand channel arg} {global db_handle error_ chan_   set chan [string tolower $channel] if {[channel get $chan UserSearch]} {         if {[mysqlping $db_handle] != 1} {       putserv "PRIVMSG $chan : $error_(mysqllost)"      return 0  }      set regpassword [md5 [random]]    set sqlnick "SELECT userid, regkode FROM nicks 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 } {     if { $userid == "" } {        set sqlnick "SELECT regkode FROM nicks WHERE nick='[mysqlescape $nick]'"       set resultkode [mysqlquery $db_handle $sqlnick]       while {[set record [mysqlnext $resultkode]] != ""} {          set regkode [lindex $record 0]       }                     puthelp "NOTICE $nick : $error_(forgotpassword)"       puthelp "NOTICE $nick : $regkode"       return 0    }            puthelp "NOTICE $nick : $error_(userregged)"  } if { $nicki == 0 } {        set sqlinsert "INSERT INTO nicks VALUES ( NULL , '[mysqlescape $nick]', '[mysqlescape $regpassword]', NULL, 'englsih' )"     set result [mysqlexec $db_handle $sqlinsert]     puthelp "NOTICE $nick : $error_(addnick1)"   puthelp "NOTICE $nick : $regpassword"   puthelp "NOTICE $nick : $error_(addnick2)"    }}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri Jun 27, 2008 7:21 am</p><hr />
]]></content>
	</entry>
	</feed>
