I feel like a noob, but everywhere I read the command is called "notify", but however, doesn't work that way I guess ^-^.[12:57:19] [!s] notify NickServ
[12:57:19] [s->] notify NickServ
[12:57:20] [@] irc.ham.de.euirc.net 421 [-RO^Bot-] notify :Unknown command
...
[13:08:30] [!s] NOTIFY :NickServ
[13:08:31] [s->] NOTIFY :NickServ
[13:08:32] [@] irc.ham.de.euirc.net 421 [-RO^Bot-] NOTIFY :Unknown command
...
[13:13:52] [!s] NOTIFY :NickServ
[13:13:53] [s->] NOTIFY :NickServ
[13:13:53] [@] irc.ber.de.euirc.net 421 [-RO^Bot-] NOTIFY :Unknown command
Code: Select all
bind raw - 601 "{handle:servwatch} {0}"
bind raw - 605 "{handle:servwatch} {0}"
bind raw - 604 "{handle:servwatch} {1}"
bind raw - 600 "{handle:servwatch} {1}"
set nickservon 1
set chanservon 1
...
proc handle:servwatch {status from keyword arg} {
set arg [split $arg]
set nick [lindex $arg 1]
set uhost "[lindex $arg 2]@[lindex $arg 3]"
set nickserv [split [lindex [getuser nickserv HOSTS] 0] !]
set chanserv [split [lindex [getuser chanserv HOSTS] 0] !]
if { ([string match -nocase [lindex $nickserv 0] $nick] && [string match -nocase [lindex $nickserv 1] $uhost]) || ([string match -nocase [lindex $chanserv 0] $nick] && [string match -nocase [lindex $chanserv 1] $uhost]) } {
set ::[string tolower $nick]on $status
putlog "$nick $status"
}
}
Looks good so far .[14:23:38] tcl: evaluate (.tcl): putserv watch
Tcl:
[14:23:41] ChanServ 1
[14:23:41] NickServ 1
[13:52:26] [@] irc.ber.de.euirc.net 604 [-RO^Bot-] ChanServ services euirc.net 1109772892 :is online
But good you remembered me, I have a few minor fixes. Because its some days ago I will just copy from the script header:Network settings:
bind notc f "*This nickname is registered and protected. If it is your" handle:nickneed
bind notc f "*Password accepted - you are now recognized." handle:nickauthed
bind notc f "*Ghost with your nick has been killed." handle:nickchange
bind notc f "*Your nickname is now being changed to \002Guest*" handle:deguest
bind notc m "*Permission denied." handle:permneed
#I dont have the DALnet variant of these 3
set joinbindunban "*You have been unbanned from \002\$channel\002."
set releasebind "*Services' hold on your nick has been released."
set noreleasebind "*Nick \002$nick\002 isn't being held."
General Settings (not intended to be modified):
bind need - "*" handle:need
bind evnt - init-server handle:serverinit
bind raw - 601 {handle:servwatch 0}
bind raw - 605 {handle:servwatch 0}
bind raw - 604 {handle:servwatch 1}
bind raw - 600 {handle:servwatch 1}
bind raw - 440 {handle:servwatch 0}
Dynamic binds (bind and unbind within the script dynimatically)
bind notc m $bind [list handle:join $channel $bind]
bind nick - "*$nick" handle:nickchangeauth
bind notc f $::releasebind handle:deguest
bind notc f $::noreleasebind handle:deguest
Code: Select all
# 1.4.2 14.04.05 minor adjustments for better handling of netsplit lags
# 1.4.1 12.04.05 some code changes for offline detection and deguest handling
# removed nickchange IDENTFIY because it was redudant
are you talking about something like that?Sir_Fz wrote:All good by me, but maybe for some users a dcc/pub identification command might be useful.
Code: Select all
bind dcc m nsfix handle:nsfix
proc handle:nsfix {hand idx text} {
global nick nickpass nickservmask serviceson
if { $serviceson || $text == "-force" } {
set serviceson 1
if { ![isbotnick $nick] } {
putdcc $idx "Requesting release of primary nick..."
uplevel #0 {handle:release n h nickserv t d}
} else {
putquick "$nickservmask :IDENTIFY $nickpass"
putdcc $idx "Sending auth to nickserv..."
}
} else {
putdcc $idx "I see the Services offline, if you are sure that they are online use -force as argument."
}
}
There seems to be cases in which the bots fails into the guestnick fight with nickserv.set joinbindunban "*You have been unbanned from \002\$channel\002."
set releasebind "Services' hold on your nick has been released."
set noreleasebind "Nick \002$nick\002 isn't being held."
Code: Select all
set joinbindunban "Any bans matching \002\$botnick\002 on \002\$chan\002 have been cleared."
set releasebind "The nickname \002$nick\002 has been released."
# As for the third, on DALnet it always says that nickname has been released... so this setting doesn't exist.
set noreleasebind "Nick \002$nick\002 isn't being held."
Code: Select all
[01:05] Tcl error [handle:servwatch 1]: No such user.
NickServ REMINDER: Do not share your password with anyone. DALnet staff will not ask for your password unless
NickServ you are seeking their assistance. See http://docs.dal.net/docs/passwords.html for more information.