what will u do if your module need "Simple" reply

These are old archives. They are kept for historic purposes only.
Post Reply
Xuefer
Posts: 20
Joined: Wed Apr 14, 2004 4:30 am

what will u do if your module need "Simple" reply

Post by Xuefer »

hey, i need your idea

i'm making module that SIMPLE reply to user
but i only used origin(in s_err.c) replies before
1. numeric? how? modify s_err.c?
2. privmsg? will make new query window
3. notice? same as 2, and mIRC will get BEEP
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

for numeric: sendto_one(sptr, ":%s %d %s %s", me.name, numeric_here, sptr->name, text_string_here)

for privmsg: sendto_one(sptr, ":%s PRIVMSG %s :%s", me.name, sptr->name, "Message here.")

for notice: sendto_one(sptr, ":%s NOTICE %s :%s", me.name, sptr->name, "Message here.")

For the numeric, if necessary, you can add extra format specifiers (sprintf() style), as long as you add the necessary arguments :P .
Xuefer
Posts: 20
Joined: Wed Apr 14, 2004 4:30 am

Post by Xuefer »

u're right, i was stupid to stick with "err_str()"
Post Reply