| View previous topic :: View next topic |
| Author |
Message |
Angel Voice
Joined: 31 Jul 2010 Posts: 13
|
Posted: Sat Aug 21, 2010 8:52 am Post subject: unreal ircd eggdrop bot script |
|
|
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 |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Tue Aug 24, 2010 2:16 pm Post subject: |
|
|
| but, what is the command which bot should send to the IRC server? |
|
| Back to top |
|
 |
Angel Voice
Joined: 31 Jul 2010 Posts: 13
|
Posted: Tue Aug 24, 2010 8:32 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Wed Aug 25, 2010 4:27 am Post subject: |
|
|
| oke, if i remember good i have script like this one on my PC @ home, i'll check it when i'll be back. |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
Posted: Wed Aug 25, 2010 12:18 pm Post subject: |
|
|
hmm, i lost it somewhere,
try this one:
| Code: | 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 |
|
| Back to top |
|
 |
|