This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

unreal ircd eggdrop bot script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
A
Angel
Voice
Posts: 13
Joined: Sat Jul 31, 2010 5:39 pm

unreal ircd eggdrop bot script

Post by Angel »

requesting for a script that an eggdrop bot (has ircop preveledges) can change vhost of a certain user when a cmd is triggered..

like:

me:.vhost
bot:use the syntax /msg bot changevhost newv.v.host
me:/msg bot changevhost kickin.some.monsters.org


so in my whois will show my new vhost that the bot changed..
the bot will change the vhost whatever the user typed as vhost
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

but, what is the command which bot should send to the IRC server?
A
Angel
Voice
Posts: 13
Joined: Sat Jul 31, 2010 5:39 pm

Post by Angel »

if the bot has ircop previledges it will just use the cmd "/chghost <nick> <host>" to change the host of the user...

for unreal ircd
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

oke, if i remember good i have script like this one on my PC @ home, i'll check it when i'll be back.
User avatar
tomekk
Master
Posts: 255
Joined: Fri Nov 28, 2008 11:35 am
Location: Oswiecim / Poland
Contact:

Post by tomekk »

hmm, i lost it somewhere,

try this one:

Code: Select all

bind pub -|- .vhost info_proc
bind msgm -|- "*" prv_cmds

proc info_proc { nick uhost hand chan arg } {
        putquick "PRIVMSG $chan :$nick: use the syntax /msg bot changevhost newv.v.host"
}       

proc prv_cmds { nick uhost hand arg } {
        set input_args [split $arg]
        set cmd [lindex $input_args 0]
        set value [string trim [lindex $input_args 1]]

        if {$cmd == "changevhost"} {
                if {$value != ""} {
                        putserv "CHGHOST $nick $value"
                } {
                        putquick "PRIVMSG $nick :use the syntax /msg bot changevhost newv.v.host"
                }
        }
}

putlog "vhost-mgm.tcl loaded"
I didn't test it, just wrote it
Post Reply