Skip to content
Snippets Groups Projects
Commit 6577a78e authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

bugfixes

Rev: lib/modules/Protocols.pmod/IRC.pmod/Client.pike:1.6
Rev: lib/modules/Protocols.pmod/IRC.pmod/Raw.pike:1.6
Rev: lib/modules/Protocols.pmod/IRC.pmod/Requests.pmod:1.5
parent 1e3db6d6
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,14 @@ void got_notify(string from,string type,
return;
}
break;
case "474": // "cannot join channel"
if ((c=channels[lower_case(message||"")]))
{
if (c->not_join_fail) c->not_join_fail(extra*" ");
return;
}
break;
case "401": // no such nick
werror("%O\n",({from,type,to,message,extra}));
......@@ -195,7 +202,7 @@ void got_notify(string from,string type,
case "367": // mode b line
if ((c=channels[lower_case(message||"")]))
{
if (c->not_mode_b) c->not_mode_b(to,extra*" ");
if (c->not_mode_b) c->not_mode_b(extra*" ");
return;
}
break;
......@@ -252,7 +259,7 @@ void got_notify(string from,string type,
case "QUIT":
forget_person(originator);
foreach (values(channels),c)
c->not_part(originator,message,originator);
if (c && c->not_part) c->not_part(originator,message,originator);
if (options->quit_notify)
{
// who, why
......
......@@ -4,7 +4,7 @@ import ".";
object con;
// #define IRC_DEBUG
// #define IRC_DEBUG
function(string,string ...:void) command_callback;
function(string,string ...:void) notify_callback;
......
......@@ -6,7 +6,7 @@ NICK Mirar^
USER mirar mistel.idonex.se irc.starchat.net :Mirar is testing
*/
string __cvs_id="$Id: Requests.pmod,v 1.4 2000/11/12 23:41:50 mirar Exp $";
string __cvs_id="$Id: Requests.pmod,v 1.5 2000/11/18 10:39:00 mirar Exp $";
import ".";
......@@ -102,6 +102,7 @@ object ping=NoReply("PING","text");
object privmsg=NoReply("PRIVMSG","string","text");
object notice=NoReply("NOTICE","string","text");
object join=NoReply("JOIN","string");
object part=NoReply("PART","string");
object names=NoReply("NAMES","string");
object who=NoReply("WHO","string");
object kick=NoReply("KICK","string","string","text");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment