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

	<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-03T13:33:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-08-03T13:33:40-04:00</updated>

		<published>2010-08-03T13:33:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93740#p93740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93740#p93740"/>
		<title type="html"><![CDATA[add delete user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93740#p93740"><![CDATA[
Thanks willyw, I have added to this so that i can add different flags for differnet users allowing some users commands that others dont this will kind of correspond with my post on eggdrop help could this be changed so it sends the adduser command then will do the chattr flags<br><div class="codebox"><p>Code: </p><pre><code>bind msg "A|A" "addhalfop" cmd:addhalfopbind msg "A|A" "delhalfop" cmd:delhalfopproc cmd:addhalfop { nick uhost handle text } {      if {[adduser [lindex [split $text] 0] [lindex [split $text] 1] ] } {         putserv "privmsg $nick :Added [lindex [split $text] 0] [lindex [split $text] 1]"         #remove default flag(s)         chattr [lindex [split $text] 0] -[chattr [lindex [split $text] 0]]         #add flags fhp         chattr [lindex [split $text] 0] +fhp         putserv "privmsg $nick : flags for [lindex [split $text] 0] are [chattr [lindex [split $text] 0]]"             } else {         putserv "privmsg $nick :That handle already exists"           }}proc cmd:delhalfop { nick uhost handle text } {      if {[deluser [lindex [split $text] 0]]} {         putserv "privmsg $nick :Deleted [lindex [split $text] 0] "          } else {         putserv "privmsg $nick :User does not exist"           }}bind msg "A|A" "addop" cmd:addopbind msg "A|A" "delop" cmd:delopproc cmd:addop { nick uhost handle text } {      if {[adduser [lindex [split $text] 0] [lindex [split $text] 1] ] } {         putserv "privmsg $nick :Added [lindex [split $text] 0] [lindex [split $text] 1]"         #remove default flag(s)         chattr [lindex [split $text] 0] -[chattr [lindex [split $text] 0]]         #add flags fhop         chattr [lindex [split $text] 0] +fhop         putserv "privmsg $nick : flags for [lindex [split $text] 0] are [chattr [lindex [split $text] 0]]"             } else {         putserv "privmsg $nick :That handle already exists"           }}proc cmd:delop { nick uhost handle text } {      if {[deluser [lindex [split $text] 0]]} {         putserv "privmsg $nick :Deleted [lindex [split $text] 0] "          } else {         putserv "privmsg $nick :User does not exist"           }}bind msg "A|A" "addadmin" cmd:addadminbind msg "A|A" "deladmin" cmd:deladminproc cmd:addadmin { nick uhost handle text } {      if {[adduser [lindex [split $text] 0] [lindex [split $text] 1] ] } {         putserv "privmsg $nick :Added [lindex [split $text] 0] [lindex [split $text] 1]"         #remove default flag(s)         chattr [lindex [split $text] 0] -[chattr [lindex [split $text] 0]]         #add flags fhopAS         chattr [lindex [split $text] 0] +fhoAS         putserv "privmsg $nick : flags for [lindex [split $text] 0] are [chattr [lindex [split $text] 0]]"             } else {         putserv "privmsg $nick :That handle already exists"           }}proc cmd:deladmin { nick uhost handle text } {      if {[deluser [lindex [split $text] 0]]} {         putserv "privmsg $nick :Deleted [lindex [split $text] 0] "          } else {         putserv "privmsg $nick :User does not exist"           }}bind msg "A|A" "addsenior" cmd:addseniorbind msg "A|A" "delsenior" cmd:delseniorproc cmd:addsenior { nick uhost handle text } {      if {[adduser [lindex [split $text] 0] [lindex [split $text] 1] ] } {         putserv "privmsg $nick :Added [lindex [split $text] 0] [lindex [split $text] 1]"         #remove default flag(s)         chattr [lindex [split $text] 0] -[chattr [lindex [split $text] 0]]         #add flags fhSop         chattr [lindex [split $text] 0] +fhoSp         putserv "privmsg $nick : flags for [lindex [split $text] 0] are [chattr [lindex [split $text] 0]]"             } else {         putserv "privmsg $nick :That handle already exists"           }}proc cmd:delsenior { nick uhost handle text } {      if {[deluser [lindex [split $text] 0]]} {         putserv "privmsg $nick :Deleted [lindex [split $text] 0] "          } else {         putserv "privmsg $nick :User does not exist"           }}</code></pre></div>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Tue Aug 03, 2010 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-02T20:10:32-04:00</updated>

		<published>2010-08-02T20:10:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93722#p93722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93722#p93722"/>
		<title type="html"><![CDATA[Re: add delete user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93722#p93722"><![CDATA[
<blockquote class="uncited"><div>Can someone help me with this i want to be able to add users to my bot simply using a <br><br>bind msg A|A addhuser cmd:addhuser<br><br>This should then add a user to the eggdrop with flags +fh<br>it should also be able to delete a user using the same proccess<br>such as<br>bind msg A|A deluser cmd:deluser</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind msg "A|A" "addhuser" cmd:addhuserbind msg "A|A" "deluser" cmd:deluserproc cmd:addhuser { nick uhost handle text } {if {[adduser [lindex [split $text] 0] [lindex [split $text] 1] ] } {putserv "privmsg $nick :Added [lindex [split $text] 0] [lindex [split $text] 1]"#remove default flag(s)chattr [lindex [split $text] 0] -[chattr [lindex [split $text] 0]]#add flags fhchattr [lindex [split $text] 0] +fhputserv "privmsg $nick : flags for [lindex [split $text] 0] are [chattr [lindex [split $text] 0]]"    } else {putserv "privmsg $nick :That handle already exists"           }}proc cmd:deluser { nick uhost handle text } {if {[deluser [lindex [split $text] 0]]} {putserv "privmsg $nick :Deleted [lindex [split $text] 0] "    } else {putserv "privmsg $nick :User does not exist"           }}</code></pre></div>Give that a test run.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>There are probably some niceties that could be added to it - perhaps someone will comment.<br><br>Regarding the flags A|A  in the binds --   I did it that way, because that is what you asked.<br>But the msg bind doesn't depend on a channel.  So if  you assign a user the A flag, only as some channel flag,  ... I'm not sure what will happen... I haven't tested that circumstance...  I'll leave that to you to discover.<br>Again, perhaps someone else can comment, to let you know what to expect.<br><br><br>I did a couple quick tests, using the global A flag, and they worked. <br>/msg botnick addhuser billybob *!*<a href="mailto:what@nowhere.here.com">what@nowhere.here.com</a><br>and<br>/msg botnick deluser billybob<br><br><blockquote class="uncited"><div>I have tried many other scripts and tried on numerouse accasions to script it my self without any luck<br>thanks in advance</div></blockquote>If you'd like to post what you attempted, I'm sure somebody here can spot what went wrong for you.<br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Aug 02, 2010 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-08-02T13:30:29-04:00</updated>

		<published>2010-08-02T13:30:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93721#p93721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93721#p93721"/>
		<title type="html"><![CDATA[add delete user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93721#p93721"><![CDATA[
Can someone help me with this i want to be able to add users to my bot simply using a <br><br>bind msg A|A addhuser cmd:addhuser<br><br>This should then add a user to the eggdrop with flags +fh<br>it should also be able to delete a user using the same proccess<br>such as<br>bind msg A|A deluser cmd:deluser<br><br>I have tried many other scripts and tried on numerouse accasions to script it my self without any luck<br>thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Mon Aug 02, 2010 1:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
