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

	<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-03-20T17:27:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nsrafk]]></name></author>
		<updated>2008-03-20T17:27:00-04:00</updated>

		<published>2008-03-20T17:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81940#p81940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81940#p81940"/>
		<title type="html"><![CDATA[!userlist script by Tosser^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81940#p81940"><![CDATA[
Hehe, first i needed to remove a "}" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Then on !userlist #channel i get this in partyline:<br><br>[22:26] Tcl error [::bc::onEncryptedText]: can't use non-numeric string as operand of "!"<br><br><br>... dont mind the ::bc:: stuff, its because im using blowcrypt <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=8985">nsrafk</a> — Thu Mar 20, 2008 5:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nsrafk]]></name></author>
		<updated>2008-03-20T17:12:24-04:00</updated>

		<published>2008-03-20T17:12:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81939#p81939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81939#p81939"/>
		<title type="html"><![CDATA[!userlist script by Tosser^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81939#p81939"><![CDATA[
Woo, thanks. Let me test it out and see if it works good <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=8985">nsrafk</a> — Thu Mar 20, 2008 5:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2008-03-20T13:02:20-04:00</updated>

		<published>2008-03-20T13:02:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81937#p81937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81937#p81937"/>
		<title type="html"><![CDATA[!userlist script by Tosser^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81937#p81937"><![CDATA[
That email address is not used anymore, this is also a very old script (one of my first scripts!).<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !userlist pub:userlistproc pub:userlist {nickname hostname handle channel text} {    if {![matchattr $handle nmovf|nmovf $channel]} {        putserv "NOTICE $nickname :You have no access to this command!"    } else {        if {$text != ""} {            if {![string index [set channel [lindex [split $text] 0]] 0] != "#"} {                set channel "#$channel"            }            if {![validchan $channel]} {                putserv "NOTICE $nickname :You specified an invalid channel. Usage: $lastbind ?#channel? (where channel is optional)."                return            }        }        if {[userlist |nmovf $channel] == ""} {            putserv "NOTICE $nickname :No users for $channel."        } else {            putserv "NOTICE $nickname :Userlist for $channel."            foreach user [userlist |nmovf $channel] {                if {$user == ""} { continue }                putserv "NOTICE $nickname :(( Handle: $user || Nickname: [expr {[hand2nick $user] == "" ? "Offline" : "[hand2nick $user]"}] || Hosts: [join [getuser $user HOSTS] ", "] || Channel flags: +[lindex [split [chattr $user $channel] |] 1] ))"                }            }            putserv "NOTICE $nickname :End of list."        }    }}</code></pre></div>Not tested!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Mar 20, 2008 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-03-20T12:13:18-04:00</updated>

		<published>2008-03-20T12:13:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81934#p81934</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81934#p81934"/>
		<title type="html"><![CDATA[!userlist script by Tosser^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81934#p81934"><![CDATA[
I'm quite sure he could, try emailing <a href="mailto:chris@cs-room.com">chris@cs-room.com</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Thu Mar 20, 2008 12:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nsrafk]]></name></author>
		<updated>2008-03-20T11:57:26-04:00</updated>

		<published>2008-03-20T11:57:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81930#p81930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81930#p81930"/>
		<title type="html"><![CDATA[!userlist script by Tosser^^]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81930#p81930"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>############################################################################################################################################################################################### Userlist Version 1.01 By Tosser^^ ########################################################################################################################################################## Contact: IRC: Nickname: Tosser^^ Channels: #ShoVe &amp; #bots.net &amp; #CupCentrum &amp; #SLuiP @ Quakenet.org Email: chris@cs-room.com ############################################################### Useage: !userlist in channel, need atleast global +o or channel +f flags to dump userlist ################################################################################################## Output: (( Handle: Users handle on the bot || Nickname: offline or nickname displayed || Host(s): The hostnames added to the bot for this user || Channel Flags: Users channel flags )) ################################################################################################################################################################################################ Bind(s)bind pub m|m !userlist user_list #----------------------------------------------------------------------------# The Script                                                                 # Do not edit anything beyond this line unless you know what you are doing!! #----------------------------------------------------------------------------proc user_list {nick uhost hand chan text} { if { [userlist |amnovf $chan] == "" } { putserv "NOTICE $nick :No users found in my userlist for $chan" } else { putquick "NOTICE $nick :Userlist for $chan" foreach user [userlist |amnovf $chan] { set usersnick [hand2nick $user] if { $usersnick == "" } { putquick "NOTICE $nick :(( Handle: $user || Nickname: Offline, or not in any of the bots channels. || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))" } else { putquick "NOTICE $nick :(( Handle: $user || Nickname: $usersnick || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))" } } putquick "NOTICE $nick :End of list." } }putlog "Userlist Version 1.01 By Tosser^^ Loaded!!, Use !userlist in channel to dump the userlist"</code></pre></div>Im wondering if anybody could add a bit of code to make it work this way:<br><br>Lets say i have 21 bots divided up in 5 groups (4 bots in each group + a hub bot). A main channel like #mainchan where all the bots is in would then be the headquarters. So, if i load "this" !userlist script, i'd then have<br>to do like;<br><br>!userlist #chan1 (a chan where 1 of the bot groups is in)<br>!userlist #chan2 ( ... )<br>etc<br><br>Atm ive loaded the userlist.tcl script in 5 bots (1 bot for each group) so i can do !userlist in any channel one of my groups is in, to get a response, hehe. Would love to make it work like the way i described above <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Does it make any sense? <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=8985">nsrafk</a> — Thu Mar 20, 2008 11:57 am</p><hr />
]]></content>
	</entry>
	</feed>
