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

	<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>2007-03-27T18:37:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-03-27T18:37:40-04:00</updated>

		<published>2007-03-27T18:37:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71653#p71653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71653#p71653"/>
		<title type="html"><![CDATA[Userlist with specific flag]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71653#p71653"><![CDATA[
<a href="http://forum.egghelp.org/search.php" class="postlink">Search</a> the forums and/or <a href="http://www.egghelp.org/tcl.htm" class="postlink">Tcl Archive</a> and you should find a number of clan scripts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Mar 27, 2007 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-03-27T10:41:01-04:00</updated>

		<published>2007-03-27T10:41:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71642#p71642</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71642#p71642"/>
		<title type="html"><![CDATA[Userlist with specific flag]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71642#p71642"><![CDATA[
Imagine you add a user with this command:<br><br>!add &lt;user&gt; &lt;position&gt; &lt;flag&gt;<br><br>If you got Clanmember and Clanowner, you add them like this.<br><br>!add User1 Clan Member f<br>!add User2 Clan Owner o<br><br>If you type now !list, you get this<br><br>Bot: User 1 | Clan Member | Flag: f<br>Bot: User 2 | Clan Owner | Flag: o<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8354">Psyfire</a> — Tue Mar 27, 2007 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-03-27T10:27:39-04:00</updated>

		<published>2007-03-27T10:27:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71641#p71641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71641#p71641"/>
		<title type="html"><![CDATA[Userlist with specific flag]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71641#p71641"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># AddOp Script v2.0 for Eggdrop 1.3.x by Digger &lt;Digger@hadiko.de&gt;# http://elreggid.home.pages.de (BOTs-homepage)# http://digger.home.pages.de (my homepage)#  # This script is originally by KuRuPTioN.# I made it suitable for eggdrop 1.3.x and made some useful changes # for using with the new flag-system.########################################################################### Allows masters and owners to add global users with +of-flags (.addsop)# Allows channelmasters, channelowners, masters and owners# to add users with +of on their channels (.addop).## Commands (pub):#  .addop &lt;nick&gt; &lt;flags&gt;  -  Adds an Op for that channel only ; &lt;flags&gt; changes flags for user#on that channel as well#  .addsop &lt;nick&gt; &lt;flags&gt; - Adds an Op for all channels ; &lt;flags&gt; updates#flags for all channels.###########################################################################set newflags "of"        # Flags for new opsset addopflag "m|m"        # Flag required to add channelop (&amp;m = Channelmaster, &amp;n = Channelowner etc.)set addsopflag "m"        # Flag required to add global op########################################################################## DO NOT EDIT ANYTHING BELOW#########################################################################bind pub $addopflag .addop add_op_normproc add_op_norm {n u h c a} {  global botnick newflags  if {[lindex $a 0] == ""} {putserv "NOTICE $n :Format: .addop &lt;nickname&gt; &lt;extra flags&gt;"putserv "NOTICE $n :Extra Flags: n(owner), m (master), f (friend)"      return 1  }   set newop [lindex $a 0]  if {[onchan $newop $c] == 0} {putserv "NOTICE $n :$newop is not on $c.  You will need to add him/her manually through a DCC chat"      return 1  }  if {[lindex $a 1] != ""} {set exflags [lindex $a 1]o  } { set exflags $newflags }    set newhost [maskhost [getchanhost $newop $c]]  if {[validuser $newop] == 1} {     if {[lsearch [getuser $newop hosts] $newhost] == "-1"} {       putserv "NOTICE $n :$newop exists in my database.  Adding flags and hostmask."       chattr $newop |+$newflags $c       setuser $newop hosts $newhost       putserv "NOTICE $newop :Your flags have been upgraded to $exflags on $c and your new host \[$newhost\] has been added."       return 1     } {     putserv "NOTICE $n :$newop exists in my database.  Adding flags."     chattr $newop |+$newflags $c     putserv "NOTICE $newop :Your flags have been upgraded to $exflags on $c."     return 1 }  }    if {[finduser $newhost] != "*"} { putserv "NOTICE $n :$newop\[$newhost\] is known as user [finduser $newhost]" return 1  }   adduser $newop $newhost    if {[chattr $newop |+$newflags $c] == "*"} {  putserv "NOTICE $n :Error adding flags to $newop."return 1  }  putserv "NOTICE $n :$newop\[$newhost\] has been added $exflags on $c"  putserv "NOTICE $newop :Congradulations $newop!"  putserv "NOTICE $newop :$n has given you Ops with flags $exflags on $c."  putserv "NOTICE $newop :Please set a password: /msg $botnick pass &lt;password&gt;"  putserv "NOTICE $newop :where &lt;password&gt; is your selected password."  putserv "NOTICE $newop :You can get ops by: /msg $botnick op &lt;password&gt;"  save}bind pub $addsopflag .addsop add_op_superproc add_op_super {n u h c a} {  global botnick newflags  if {[lindex $a 0] == ""} {putserv "NOTICE $n :Format: .addsop &lt;nickname&gt; &lt;extra flags&gt;"putserv "NOTICE $n :Extra Flags: n(owner), m (master), f (friend)"      return 1  }   set newop [lindex $a 0]  if {[onchan $newop $c] == 0} {putserv "NOTICE $n :$newop is not on $c.  You will need to add him/her manually through a DCC chat"      return 1  }  if {[lindex $a 1] != ""} {set exflags [lindex $a 1]o  } { set exflags $newflags }   set newhost [maskhost [getchanhost $newop $c]]   if {[validuser $newop] == 1} {     if {[lsearch [getuser $newop hosts] $newhost] == "-1"} {       putserv "NOTICE $n :$newop exists in my database.  Adding flags and hostmask."       chattr $newop |+$newflags $c       setuser $newop hosts $newhost       putserv "NOTICE $newop :Your flags have been upgraded to $exflags and your new host \($newhost\) has been added."       return 1     } {     putserv "NOTICE $n :$newop exists in my database.  Adding flags."     chattr $newop |+$newflags $c     putserv "NOTICE $newop :Your flags have been upgraded to $exflags."     return 1 }  }    if {[finduser $newhost] != "*"} { putserv "NOTICE $n :$newop\[$newhost\] is known as user [finduser $newhost]" return 1  }    adduser $newop $newhost  chattr $newop |+$newflags  putserv "NOTICE $n :$newop\[$newhost\] has been added with flags $exflags"  putserv "NOTICE $newop :WOW! Congradulations $newop!"  putserv "NOTICE $newop :$n has given you SuperOps with flags $exflags on all channels I am on."  putserv "NOTICE $newop :Please set a password: /msg $botnick pass &lt;password&gt;"  putserv "NOTICE $newop :where &lt;password&gt; is your selected password."  putserv "NOTICE $newop :You can get ops by: /msg $botnick op &lt;password&gt;"  save}putlog "Addop v2.0 for Eggdrop1.3.x by Digger loaded..."</code></pre></div>I did'nt get "Clan Members" part, explain more.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Tue Mar 27, 2007 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Psyfire]]></name></author>
		<updated>2007-03-27T09:09:30-04:00</updated>

		<published>2007-03-27T09:09:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71638#p71638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71638#p71638"/>
		<title type="html"><![CDATA[Userlist with specific flag]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71638#p71638"><![CDATA[
Hello,<br><br>I need a small script where you are able to add users, which are on a channel. You store them into a list, by their hostname, with a flag and a position.<br><br>Example:<br><br>!add &lt;user&gt; &lt;position&gt; &lt;flag&gt;<br><br>Bot: User was added in the position "Clan Member" with the botflag f.<br><br>Of course I would need a command for deleting them and listing them.<br><br>Thank you <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=8354">Psyfire</a> — Tue Mar 27, 2007 9:09 am</p><hr />
]]></content>
	</entry>
	</feed>
