Send an offline message from your cleint
Moderator: Moderators
Send an offline message from your cleint
like not a script or hub but like send a message locally on your client it watches the hub and when the user connects it sends the message
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
My thought is that this would actually be a really nice thing to have. Interpretation: I want to be able to "send" an offline message to a user, and when they came online, actually send it to them. Basically, store a message until the user comes online, then auto send it. It's useful if you have a short term memory or the user is hard to get a hold of. This is not the "best" method, as offline messaging (similar to ICQ) through the hub would be better, but this is easily the most feasible as it is self-contained in the client.
-Gratch06
-Gratch06
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
On that note, I think it'd be really handy to have a /pm command...I try to avoid using mouse as much as possible, so if I could type /pm <user> and use oDC's Alt + # navigation system, I could theoretically go fully without a mouse and still chat through up to 9 windows (happy me).Twink wrote:i could see dc++ storing whatever you typed in a pm window and sending when it got a user online message however i suddenly thought if the user isn't online then you can't open a pm windows for them can you =D I'm guessing this might have to be a command line thing (like /pm user message)
I added this code in HubFrame around line 210. Seems to work for me
Code: Select all
} else if (stricmp(s.c_str(), "pm")==0){
string user = "", message = "";
int spacePos = param.find(' ');
if (spacePos != string::npos){
user = param.substr(0,spacePos);
message = param.substr(spacePos+1);
if(user!=""&&message!=""){
message = "<" + client->getNick() + "> " + message;
client->privateMessage(user,message);
}else addLine("*** /pm UserName Message");
}else addLine("*** /pm UserName Message");
this could be extended to open a pm window if no message is specified.
Code: Select all
} else if (stricmp(s.c_str(), "pm")==0){
string user = "", message = "";
int spacePos = param.find(' ');
if (spacePos != string::npos){
user = param.substr(0,spacePos);
message = param.substr(spacePos+1);
}else user = param;
if(user!=""&&message!=""){
message = "<" + client->getNick() + "> " + message;
client->privateMessage(user,message);
}else if(user!=""){
PrivateFrame::openWindow(ClientManager::getInstance()->getUser(user), m_hWndMDIClient, getTab());
}else addLine("*** /pm UserName Message");
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us