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

	<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>2025-02-07T03:02:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2025-02-07T03:02:07-04:00</updated>

		<published>2025-02-07T03:02:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113243#p113243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113243#p113243"/>
		<title type="html"><![CDATA[Re: add owner in eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113243#p113243"><![CDATA[
@Crazycat, i find this .. it works .. does this code ok?<br><div class="codebox"><p>Code: </p><pre><code>proc addowner:pub {nick uhost hand chan arg} {    # Check if the user has the necessary permission    if {![matchattr [nick2hand $nick] n]} {        return    }    # Extract the owner's nickname from the argument    set owneradd [lindex [split $arg] 0]    # Validate the nickname parameter    if {$owneradd eq ""} {        putquick "PRIVMSG $chan :\037ERROR\037: Incorrect Parameters. \037SYNTAX\037: [addTrigger]addowner nickname"        return    }    # Check if the owner is a valid user    if {[validuser [nick2hand $owneradd]]} {        putquick "PRIVMSG $chan :\037ERROR\037: $owneradd is already a valid user."        return    }    # Check if the owner is on the channel    if {![onchan $owneradd $chan]} {        putquick "PRIVMSG $chan :\037ERROR\037: $owneradd is not even on $chan ..."        return    }    # Get the hostmask of the owner and add them as a global owner    set chanhost [getchanhost $owneradd $chan]    set mask *!*@[lindex [split $chanhost @] 1]    adduser $owneradd $mask    chattr $owneradd +n    # Send notifications to the involved users    putquick "NOTICE $nick :Added $owneradd to the Global Owner List."    putquick "NOTICE $owneradd :$nick ($hand) has added you to the Global Owner List."}</code></pre></div>just need a comments from veteran coders <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=12622">aslpls</a> — Fri Feb 07, 2025 3:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2025-02-03T01:44:52-04:00</updated>

		<published>2025-02-03T01:44:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113242#p113242</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113242#p113242"/>
		<title type="html"><![CDATA[Re: add owner in eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113242#p113242"><![CDATA[
hello Crazycat, i'll test it and update here soon...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Mon Feb 03, 2025 1:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-02-02T12:02:59-04:00</updated>

		<published>2025-02-02T12:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113241#p113241</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113241#p113241"/>
		<title type="html"><![CDATA[Re: add owner in eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113241#p113241"><![CDATA[
That's a quite dangerous script.<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">proc addowner {nick uhost handle chan text} {   if {![onchan $text $chan]} {      putserv "PRIVMSG $nick :Sorry, can't find $text on $chan"      return   }   set victhost [maskhost "$text![getchanhost $text $chan]" 1]   adduser $text $victhost   chattr $text +n $chan}bind pub n|- "!addowner" addowner</code></pre></div> <strong>script</strong> Note that you must be owner of the eggdrop to add someone, and he'll be owner on the channel, not global.<br><br>Not tested, adapt it as you need.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Feb 02, 2025 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2025-02-02T05:13:14-04:00</updated>

		<published>2025-02-02T05:13:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113240#p113240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113240#p113240"/>
		<title type="html"><![CDATA[add owner in eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113240#p113240"><![CDATA[
hi, good day to all. i would like to request a simple tcl for adding as a owner in eggdrop.<br><br>let's say i have an eggdrop bot and  i need to add my friend as owner in eggdrop.<br><br><br><strong class="text-strong">Cmds be like:</strong><br><br>botname: !add owner myfriend<br>botname:  Added user myfriend with hostmask: *!*<a href="mailto:myfriend@myfriend.users.undernet.org">myfriend@myfriend.users.undernet.org</a><br><br><br>thank you for anyone who can help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Sun Feb 02, 2025 5:13 am</p><hr />
]]></content>
	</entry>
	</feed>
