Code: Select all
set nickserv "nickserv"
set chanserv "chanserv"
set hostserv "hostserv"
set pass "your_egg_pass"
set username "eggdrop_name
bind evnt - "init-server" ident:on
bind notc - "*IDENTIFY*" init:ident
proc ident:on { type } {
global botnick nickserv hostserv pass username
putserv "MODE $botnick +iB-ws"
putquick "PRIVMSG $nickserv :GHOST $username $pass"
putquick "PRIVMSG $nickserv :IDENTIFY $pass"
putquick "PRIVMSG $hostserv :ON"
}
proc init:ident {nick uhost handle text {dest ""}} {
global botnick nickserv hostserv pass
if {$dest == ""} {
set dest $botnick
}
putserv "PRIVMSG $nickserv :identify $pass"
putserv "PRIVMSG $hostserv :ON"
}
putlog "Initialization loaded"
Code: Select all
set channel "#channel"
bind join - * identify:self
proc identify:self {nick uhost hand chan} {
if {[string match -nocase $::channel $chan] && [string match -nocase $::botnick $nick]} {
putserv "PRIVMSG nickserv :identify PASSWORD"
}
}
Using 'string match' to compare strings is not a good idea. Nicks and channel names might contain chars that have a special meaning when used in a mask. Use 'string equal' OR convert both strings to lowercase and use ==Sir_Fz wrote:Code: Select all
[string match -nocase $::channel $chan] && [string match -nocase $::botnick $nick]
This usually is the result of the irc server setting a +r mode on a user, which has a different meaning on different networks.Taxi[USA] wrote: [snip]
but, problem is> Bot join channel, gets opped, and then i lined... how can i fix it? i havnt problem before with it....
[22:41:07] * Reject (~none@68.185.102.85) has joined #Taxi
[22:41:23] * ChanServ sets mode: +o Reject
[22:41:23] * Reject (~none@68.185.102.85) Quit (Quit: i-lines suck)
plz help me!!! Thx..